search for: psfaculty

Displaying 1 result from an estimated 1 matches for "psfaculty".

Did you mean: usfaculty
2009 Jul 22
1
kaplan-meier error
Hi all, I am getting an error in my code and I don't know what the problem is. I am using R 2.9 on ubuntu. my code is as follows: ## Libraries ## library(survival) library(foreign) ## reading data ## data<-read.dta("http://psfaculty.ucdavis.edu/bsjjones/cabinet.dta") head(data) attach(data) fit1<-survfit(Surv(durat,censor)) and I get the following error > fit1<-survfit(Surv(durat,censor)) Error in survfit(Surv(durat, censor)) : Survfit requires a formula or a coxph fit as the first argument any help is great...