Skip to content
Back to formatted view

Raw Message

Message-ID: <20110405125635.31101nfivkjlngfn@webmail.pdx.edu>
Date: 2011-04-05T19:56:35Z
From: xueke at pdx.edu
Subject: simple save question

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,

  print(km.fit,print.rmean=TRUE)
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.

Xueke