Replies: 3 comments
-
Hi, any thoughts on this? Would assume there is no interest/plan for time varying Cox predictions, if no response. |
Beta Was this translation helpful? Give feedback.
-
I'm interested in more features for time-varying fitter as well. For example, |
Beta Was this translation helpful? Give feedback.
-
Hi, I have recently used lifelines' time-varying Cox model in a project, and came across the same question. I am working with a historical, observational panel dataset where many subjects' event statuses are observed daily, along with a set of covariates.
Here's how I planned to do that:
The goal here isn't to predict the event status at T before it occurs, but to use the model for something like "immediate historical analysis" after T is observed. I think it's a reasonable way to assess current event risk for a given subject, provided the covariates are any good. If I am not missing anything that invalidates my reasoning, I think having a In the meantime, I referenced the code in #530 to work back from From there, I plotted the survival times & survival function values for each observation, colored by the covariate of interest, something akin to If it would be useful, I can share some boilerplate code & information about my dataset structure, but not the data itself. |
Beta Was this translation helpful? Give feedback.
-
Hi All,
I have seen a few CrossValidated posts (here and here for example), which mention why prediction on time varying covariates is paradoxical and leads to survivorship bias. While I do somewhat agree with the paradox, I still believe there is quite some use case of allowing prediction on time-varying covariates.
As described by @GCBallesteros in #530, we can use the time varying covariates for prediction in cases where we can predict the underlying covariates. This is also useful in running what-if analyses. As such, does it make sense to allow this prediction in a future release, potentially with warning for avoiding misuse (rather than not allow it completely)? I believe the underlying baseline hazard and partial hazards are already available and it's the fundamental paradox which is blocking the feature, rather than implementational complications.
Currently, without any other alternative, a lot of us are falling back to the survival package on R.
Beta Was this translation helpful? Give feedback.
All reactions