Both scenarios are related to left truncation: individuals in a study who provide no information about events that occur prior to some elapsed time since time = 0
as defined for the study.
For scenario 1, with date of birth as time = 0
, you need to account for the inherent left truncation due to enrollment after birth. An individual who enrolls at a certain age provides no information about individuals who never reached that age: that's left truncation at that age. In the counting-process formulation, the first time value represents a left truncation time. Instead of DOB
you should use age at enrollment
for the first time value. In practice that can cause problems if there are just a few individuals who enroll at early ages. Sometimes you need to model survival conditional upon having already reached some age.
You also need to consider whether you should be using a competing-risks model with death as the competing risk, as the event seems to be non-fatal given the fact that individual #5 managed to enroll after the event.
How to handle individual #5 depends on whether the covariate can vary over time and whether there can be multiple events per individual.
First, assume that there is at most 1 event possible per individual. If the covariate value is constant in time, then it seems that you could include the value measured on individual #5 at enrollment as the value present at the event time. If there is at most 1 event per individual, however, then individual #5 should not be included at times after the event time: that individual is no longer at risk for an event, and the analysis should only include those who are at risk.
If the covariate value can vary over time, then you need to extend your model to allow for that. For example, set up multiple data rows per individual, one row per time interval with a fixed set of covariate values for that individual. See the R time dependence vignette. An alternative is to build a joint model of covariate values and events over time.
If there can be multiple events per individual, then you need a more complex model and you need to decide how to define time = 0
for events after the first.
Scenario 2 is for post-diagnosis survival (time = 0
is date of diagnosis) when someone enrolls after diagnosis. An individual who enrolls at time W
after diagnosis provides no information about those who might have had an event prior to W
time after diagnosis, and needs to be included as having a left-truncated start time. The event or right-censoring time, however, still needs to be Y
for all individuals, if Y
is "the time from diagnosis to death." You have to be very careful to be consistent in how you define and apply time = 0
in survival analysis.
In response to comments
What matters for left truncation is the time at which the individual begins to provide information. The left-truncation time is the time (since the reference that you defined for time = 0
) at which the individual begins to contribute information about the event time. Individual #5 does provide information at the corresponding event time, so in a time-since-birth analysis you might use age at that event in your model, even though formal enrollment didn't happen until later. If there is at most 1 event per individual then data from that individual should not be included at later ages for survival analysis, as the individual is no longer at risk for the event.
In your particular situation you don't have BMI data, which you want to include as a covariate, at the event time for individual #5. You either have to remove that individual or find a realistic way to use multiple imputation to handle the missing data.
More generally for your specific study, you don't have continuous BMI measurements, only measurements at specified times. You might need to use a joint model of the covariate over time together with the time to event. The CRAN Survival Task View has links to several implementations, including the JM
package authored by a contributor to this site.
You should consult a local statistical expert before you proceed. Some extra time in such consultation now can save you enormous headaches when you try to publish your results in complicated situations like this with observational data. In the situation you describe, I'm particularly worried about the possibility of selection bias in terms of which individuals choose to enroll in your study, given that some enroll already having had the event while others haven't yet had it.