I have a question about the implementation of Cox Time Varying Regression model, that I need to perform to understand the impact of co-variates on my survival prediction.
I found an example here (https://lifelines.readthedocs.io/en/latest/Time%20varying%20survival%20regression.html) but I still have a doubt. My dataset contains some patients (so rows of the dataframe with the same ID) that are not studied continuously during the observation time, showing some "gaps"; so, for example, I have info like that:
- ID: 1 , start: 0 , stop: 50 , event : 0
- ID: 1 , start: 60 , stop: 80 , event : 0
- ID: 1 , start: 80 , stop: 100 , event : 1
So, as you can see, the first two time intervals are not consecutive but have a gap (from 50 to 60). Do you know whether I can include these patients in my analysis or I have to remove them? I have this doubt because I've never seen this "situation" in the examples I found online.
Thank you in advance.
lifelinesand my generally supportive (if less dogmatic) answer on the same page. The original fitting of the model about which you inquired isn't at issue, even with gaps of time within an individual. It's interpretation and prediction that pose problems, even without gaps. – EdM Apr 03 '23 at 14:30