[R] median of a survfit object
Hello R users ! Here a survfit object : library(survival) essai - aml[aml$x == Maintained,] calc - survfit(Surv(essai$time, 1 - essai$status)) calc 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 ? -- David -- David [[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
Re: [R] median of a survfit object
see: [R] How to access results of survival analysis Xiaochun Li (06 May 2006) At 15:03 24.05.2006 +0200, David Hajage wrote: Hello R users ! Here a survfit object : library(survival) essai - aml[aml$x == Maintained,] calc - survfit(Surv(essai$time, 1 - essai$status)) calc 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 ? -- David -- David [[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 __ 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
Re: [R] median of a survfit object
It works ! thank you ! 2006/5/24, Heinz Tuechler [EMAIL PROTECTED]: see: [R] How to access results of survival analysis Xiaochun Li (06 May 2006) At 15:03 24.05.2006 +0200, David Hajage wrote: Hello R users ! Here a survfit object : library(survival) essai - aml[aml$x == Maintained,] calc - survfit(Surv(essai$time, 1 - essai$status)) calc 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 ? -- David -- David [[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 -- David [[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