--- 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
simple save question
1 message · Terry Therneau