Skip to content

Kaplan-Meier survfit problem

2 messages · Esteban Cervetto, David Winsemius

#
On Dec 11, 2011, at 5:48 PM, Esteban Cervetto wrote:

            
You may be correct. The help page for Surv says "Although unusual, the  
event indicator can be omitted, in which case all subjects are assumed  
to have an event."
If you are adding the "**" for emphasis, it is certainly confusing my  
understanding of what your original code was, which i'm now wondering  
you ever provided. Perhaps it was the lack of a data argument. Hard to  
tell.

This "works":

 > fit <- survfit(Surv(time) ~ 1, data = aml[aml$status==1, ])
 > plot(fit)