[R] median of a survfit object

From: David Hajage <dhajage_at_gmail.com>
Date: Wed 24 May 2006 - 23:03:26 EST

 Hello R users !

Here a survfit object :


essai <- aml[aml$x == "Maintained",]

calc <- survfit(Surv(essai$time, 1 - essai$status))


Call: survfit(formula = Surv(essai$time, 1 - essai$status))

      n  events  median 0.95LCL 0.95UCL
     11       4     103      28     Inf

I would like to get the median of the object "calc"... For example,

med <- calc$median

But it doesn't work... How can I do this ?





        [[alternative HTML version deleted]]

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed May 24 23:20:10 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 25 May 2006 - 00:10:23 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.