[R] error

nurnabilanabil at hotmail.com nurnabilanabil at hotmail.com
Fri Feb 12 03:31:52 CET 2010


list<-read.csv("c:\\temp\\data.csv")
list
library(survival)
status<-1*(>0)
plot(survfit(Surv(status,time)~1,data=list),ylab="Survivorship",xlab="Time")
model<-survfit(Surv(time,status)~1, data=list

plot(survfit(Surv(status,time)~1,data=list),ylab="Survivorship",xlab="Time")
Error in Surv(status, time) : Time and status are different lengths

what does it means (time and status are different lengths?)
please do help me..
thank you very much :)



More information about the R-help mailing list