In R, I arranged my database to be a counting process to apply a extended Cox model (with time varying covariates): The end points are the times to event or time to censorship and the cut points are all event times in the data:
newdatabase <- survSplit(database,cut=eventTimes,
end=time_to_event_variable,
event=Status,start="start",id="newID")
object<-coxph(Surv(newdatabase$start, newdatabase[time_to_event_variable],
newdatabase[Status] ~.,
data = newdatabase [c(some_covariates)])
now my wish is to plot individual survival curves (for individual i):
S_i_cox <- survfit(object,newdata=newdatabase,id=newID)[i]
My problem is that survFit object describes the survival curve of patient i only for the previous event times (of other patients) till his event time (of patient i):
in other words,
S_i_cox$time and S_i_cox$surv
will be different for each patients depending of how many
events occur before patient i event. For example, the patient with the lowest time event
has only one measurement of his survival curve (in object S_i_cox
).
How to have more points of the survival (and get a real estimation of the curve)? I understand that I can change the cut in survSplit to have more points but the idea is to predict also the individual survivals after actual end point event of a patient.
Thanks a lot Ilan