I have a question concerning survival analysis and how/whether one needs to incorporate time-varying covariates (at all).
Example - Time to tenure (earning PhD is time origin) and for example I want to model productivity (number of publications) as an explaining covariate. I hope it is a super easy question and I can laugh about it afterwards.
What is the difference for my analysis if I model the covariate like Version A, Version B or Version C?
I see a lot of Version A but I always thought you had to split spells, when covariates change...
Version A (covariate as cumulative sum):
ID | time to tenure | no. publications | event |
---|---|---|---|
1 | 4 | 9 | 1 |
Version B (time-varying covariate, still the sum):
ID | time to tenure | no. publications | event |
---|---|---|---|
1 | 1 | 3 | 0 |
1 | 3 | 4 | 0 |
1 | 4 | 9 | 1 |
Version C (the yearly output of publications):
ID | time to tenure | no. publications | event |
---|---|---|---|
1 | 1 | 3 | 0 |
1 | 2 | 0 | 0 |
1 | 3 | 1 | 0 |
1 | 4 | 5 | 1 |