--- begin inclusion--
Hi,

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,

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

-----  end inclusion ---

Use sfit <- summary(fit).  Then sfit$table contains the data the the
print method produces.
 
No, there isn't a way to extract them from the print command; the
standard in S/R is for all print commands to return the object passed to
them, without embellisment.

Terry Therneau

______________________________________________
R-help@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.

Reply via email to