[R] Kaplan-Meier survfit problem

ericyujin99 abcyujin at 126.com
Mon Apr 19 04:44:32 CEST 2010


When I try to the code from library(survival) of library(ISwR),

the following code 

survfit(Surv(days,status==1))

that could produce Kaplan-Meier estimates shows the following error

"Error in survfit(Surv(days, status == 1)) : 
  Survfit requires a formula or a coxph fit as the first argument"

How it can be done in R.2.10
-- 
View this message in context: http://n4.nabble.com/Kaplan-Meier-survfit-problem-tp2015369p2015369.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list