Skip to content
Back to formatted view

Raw Message

Message-ID: <1302094191.18197.8.camel@nemo>
Date: 2011-04-06T12:49:51Z
From: Terry Therneau
Subject: simple save question

--- 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