data(aml)
aml3<-survSplit(aml,cut=c(5,10,50),end="time",start="start",
event="status",episode="i")
summary(aml)
summary(aml3)
coxph(Surv(time,status)~x,data=aml)
## the same
coxph(Surv(start,time,status)~x,data=aml3)
Run the code above in your browser using DataLab