[R] simple save question

From: <xueke_at_pdx.edu>
Date: Tue, 05 Apr 2011 12:56:35 -0700


When I run the survfit function, I want to get the restricted mean value and the standard error also. I found out using the "print" function to do so, as shown below,

Call: survfit(formula = Surv(diff, status) ~ 1, type = "kaplan-meier")

    records      n.max    n.start     events     *rmean *se(rmean)     median
    200.000    200.000    200.000    129.000      0.145      0.237      1.158
    0.95LCL    0.95UCL
      0.450      1.730
     * restricted mean with upper limit =  2.97

The questions is, is there any way to extract these values from the print command?

Thanks a lot.


R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 05 Apr 2011 - 20:53:29 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 05 Apr 2011 - 21:00:27 GMT.

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

list of date sections of archive