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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to