Timeline for Shifting start and end time of a row, when doing survival/recurrent event analysis: Why does it affect the model estimate?
Current License: CC BY-SA 4.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 2 at 0:02 | comment | added | Farzin Shamloo | Thanks for the response! Regarding your question: "I don't understand why you think that changing the data shouldn't change the parameter estimates": Because in both datasets, we have 10 total units of time for id=1, and in both of them, they experienced an event after 5 units of time, and for the next 5 units of time, they had no events. I got my answer in the link I commented, I should simply code my formula as coxph(Surv(gaps, event) ~ ...) instead of coxph(Surv(start, stop, event) ~ ...). They are modelling different things, and what I wanted to get is captured by the former formulation | |
| Apr 1 at 4:37 | history | answered | David L Thiessen | CC BY-SA 4.0 |