Skip to content
Prev 27074 / 398500 Next

help drawing kaplan-meier plot starting from 0

On Thu, 16 Jan 2003, Frank Mattes wrote:

            
<various stufff>
You want the fun="event" option to plot.survfit.  Eg
       data(aml)
      leukemia.surv <- survfit(Surv(time, status) ~ x, data = aml)
# usual plot
      plot(leukemia.surv, lty = 2:3)
# cdf (event) ploot
      plot(leukemia.surv, lty = 2:3,fun="event")

	-thomas

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