- 50000 participants
- Assessments of various risk factors at baseline
- Dates when participants were included in the study
- Dates when participants died or were censored (after 2 years)
Calculating time differences in days between inclusion and death/censored results in a vector
[0,1,2,3, ... , 370.5]
About 50 participants had a time difference of 0. Logically, assessments and inclusion must have happened before participant death. Performing survival analyses with event times = 0 presents technical difficulties. Would you exclude those individuals (my initial thought), or set their event times at 0.1 (or similar low value) to be able to include them? Or maybe set event times to 0.5?