Displaying 1 result from an estimated 1 matches for "kaplain".
2010 Dec 27
1
Problem using pkg "survival"
...ing to utilize the "survival" pkg (
http://cran.r-project.org/web/packages/survival/index.html), while reading
through this guide (http://www.ms.uky.edu/~mai/Rsurv.pdf). I figured working
through the guide would be the best way to go, before attempting my own
data.
I tried to utilize the Kaplain-Meier estimator as shown in the guide:
summary(survfit(Surv(aml$time[1:11],aml$status[1:11])))
This, however, returns the error:
Error in survfit(Surv(aml$time[1:11], aml$status[1:11])) :
Survfit requires a formula or a coxph fit as the first argument
Obviously the first thing t...