[R] plot survival points

Thomas Lumley tlumley at u.washington.edu
Thu May 2 19:42:03 CEST 2002


On Thu, 2 May 2002, Ronaldo Reis Jr. wrote:

> Hi all,
> I have a little problem.
> I make an weibull survival analysis using the survival package. It,s OK, them
> I have the functions. I plot this funcions with curve(). I want to make a
> plot with the real survival points (proportion of alive x time) and them add
> the curves to points. I have the time to dead, the censor data and my
> trataments. To analysis the model is:
> model1 <- survreg(Surv(time,censor)~trat)
> Exist any function in R to plot the real point (proportion of alive in time)?

plot(survfit(Surv(time,censor)~trt))

or to superimpose on an existing plot

lines(survfit(Surv(time,censor)~trt))

	-thomas


Thomas Lumley			Asst. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list