Tutorials › Joint Modeling of Longitudinal and Time-to-Event Data › Avoiding Immortal-Time Bias in Landmark Cohorts

Landmarking as an Alternative · Tutorial 644 of 697

Avoiding Immortal-Time Bias in Landmark Cohorts

Learn to construct a landmark cohort with a valid time origin and interpret its conditional event risk without counting pre-landmark survival as post-landmark follow-up.

Intermediate 10 min read

What You'll Learn

  • Define who is eligible for a fixed-time landmark cohort.
  • Construct follow-up time and event indicators after the landmark.
  • Distinguish immortal-time bias from conditioning on landmark survival.
  • Quantify how backdating exposure can dilute an event rate.
  • Calculate conditional risk from survival probabilities at two times.
  • Identify common data and analysis choices that introduce immortal time.

Why the Time Origin Matters

A landmark analysis asks about future event risk among people who meet specified eligibility criteria at a chosen time. The landmark is the time origin for that prediction: information measured later cannot be used as though it had been available earlier, and survival before the landmark is not post-landmark follow-up. If those distinctions are ignored, a predictor or exposure can appear to have an event-free period that was guaranteed by how the analysis group was defined.

That guaranteed period is the source of immortal-time bias. For example, if people are classified as “treated” because they begin treatment at month 6, they must have remained alive and eligible until month 6 to enter that group. Counting months 0 to 6 as treated follow-up credits the treatment group with time during which its members could not yet have been treated. Landmarking avoids this particular error when the cohort, predictor availability, and follow-up start are all aligned at the landmark.

Definition: Let \(T_i\) be subject \(i\)'s event time measured from a common origin, \(C_i\) the censoring time, and \(L\) a prespecified landmark. A fixed-time landmark cohort includes subjects whose event-free status at \(L\) is known and who meet the stated eligibility criteria at \(L\). For an event-free-at-\(L\) cohort, eligibility requires \(T_i>L\) and \(C_i\geq L\), with ties at \(L\) handled by a prespecified rule. A predictor used at the landmark must be available from information observed no later than \(L\). Post-landmark follow-up is measured from \(L\), not from the original time origin.

The target is conditional: for example, the probability of an event by \(L+h\) among people who are event-free and eligible at \(L\), given information available by \(L\). This differs from the risk from the original time origin in the full baseline cohort. Conditioning on landmark survival changes the population being described; as discussed in the earlier material on selection induced by landmark survival, that selection can affect who remains in the cohort. Immortal-time bias is a separate problem: it arises when pre-landmark time is incorrectly attributed to post-landmark predictors or follow-up.

Eligibility, Predictor Timing, and Follow-Up

A defensible construction starts by fixing the landmark and writing down the eligibility rule before examining post-landmark outcomes. For a single terminal event, a common rule is that the subject is known to be alive and event-free at \(L\). A subject with an event before \(L\) is not eligible for this conditional prediction. A subject censored before \(L\) is not known to have survived event-free to \(L\), so should not be treated as an eligible survivor. If an event occurs exactly at \(L\), decide in advance whether eligibility is assessed just before or just after that time and apply the rule consistently.

For an eligible subject, define the residual follow-up time \(Y_i=\min(T_i,C_i)-L\), and the post-landmark event indicator \(\delta_i=I(T_i\leq C_i)\). These quantities describe only follow-up after \(L\). If the event was observed before \(L\), the subject is excluded rather than assigned a negative or positive post-landmark time. If censoring occurred before \(L\), the subject’s status at \(L\) is unknown and cannot be assumed event-free.

A landmark predictor can be a value, change, slope, or other summary constructed from data available by \(L\), as covered in the earlier material on landmark predictors. Its measurement time must not extend beyond the landmark. A value recorded at a visit after \(L\), or treatment received after \(L\), is future information relative to the prediction time. Assigning people to groups using such information and then starting their follow-up at \(L\) or earlier creates a look-ahead problem; it does not create a valid landmark predictor.

1
Set the landmark and estimand.
State the time origin, the event-free eligibility rule, the prediction horizon, and the population to which the conditional prediction applies.
2
Apply eligibility using information through the landmark.
Exclude observed pre-landmark events and people whose follow-up ends before their status at the landmark is known. Apply the prespecified rule for events tied with \(L\).
3
Freeze the predictor information.
Use only measurements and other information available by \(L\); do not define a group using future survival, future visits, or future treatment.
4
Start the event analysis at the landmark.
Use residual times \(Y_i\) and post-landmark event indicators \(\delta_i\). Interpret results as conditional on eligibility at \(L\), not as baseline risks in the original cohort.

Conditional Risk and the Time Reset

Let \(S(t)=P(T>t)\) denote event-free survival from the original origin. For a fixed landmark \(L\), the probability of remaining event-free for a further \(h\) time units, conditional on being event-free at \(L\), is

$$ P(T>L+h\mid T>L)=\frac{S(L+h)}{S(L)}. $$

This follows directly from conditional probability. Since the event-free set \(\{T>L+h\}\) is contained in \(\{T>L\}\), for \(S(L)>0\),

$$ P(T>L+h\mid T>L) =\frac{P(T>L+h,\ T>L)}{P(T>L)} =\frac{P(T>L+h)}{P(T>L)} =\frac{S(L+h)}{S(L)}. $$

Thus, conditional event risk over the next \(h\) time units is \(1-S(L+h)/S(L)\). In an analysis indexed by residual time \(u\), the landmark cohort’s survival curve starts at \(u=0\), which represents calendar time \(L\). It must not be interpreted as though those selected subjects had been at risk from the original origin with their landmark predictors already known.

Worked Example: Building a Cohort at Six Months

Consider hypothetical follow-up measured in months from enrollment, with landmark \(L=6\). Events at exactly six months are excluded by the prespecified rule that eligible subjects must satisfy \(T_i>6\). The table gives five subjects’ event or censoring times. A subject censored before month 6 has unknown event-free status at the landmark.

SubjectObserved informationLandmark decisionPost-landmark follow-up
AEvent at month 10Eligible\(Y=10-6=4,\ \delta=1\)
BEvent at month 5Exclude: event before \(L\)Not defined for this cohort
CCensored at month 4Exclude: status at \(L\) unknownNot defined for this cohort
DCensored at month 9Eligible\(Y=9-6=3,\ \delta=0\)
EEvent at month 6Exclude under the stated tie ruleNot defined for this cohort

The table produces two eligible subjects: A and D. A contributes four months of post-landmark follow-up and an observed event; D contributes three months of post-landmark follow-up and is censored. Neither subject contributes the first six months as post-landmark person-time. Including B as a post-landmark event would be incorrect because B’s event occurred before the prediction time.

What Backdating an Exposure Does

A common form of immortal-time bias occurs when exposure status is defined by a future event, such as starting treatment after enrollment, but is assigned retrospectively from baseline. The treated group then contains only people who survived and remained eligible long enough to start treatment. Their pre-treatment time is guaranteed to be event-free with respect to the event that would have prevented treatment initiation. Crediting this interval as treated follow-up can dilute the treated group’s event rate.

Worked Example: Quantifying Dilution From Backdated Treatment

Suppose, hypothetically, that 40 people start a treatment at month 6. All are event-free at that time, and during the next year 8 experience the event. For a simple rate calculation, assume all 40 contribute the full year after month 6. The correct post-landmark event rate is

$$ \frac{8\ \text{events}}{40\ \text{person-years}} =0.200\ \text{events per person-year}. $$

If the 40 people are retrospectively labelled treated from enrollment and their first six months are added to treated follow-up, the denominator becomes \(40(0.5+1)=60\) person-years. The backdated rate is

$$ \frac{8\ \text{events}}{60\ \text{person-years}} =0.1333\ \text{events per person-year}. $$

The difference is not evidence that treatment reduced events during those first six months: no one in this group had started treatment then. The calculation attributes 20 event-free person-years to treatment before treatment began, reducing the apparent rate. A valid comparison must align exposure status with time at risk. One option is a landmark comparison among people eligible at month 6, with follow-up starting then and groups defined using information available at month 6. A time-dependent exposure analysis is another standard approach when the question and model call for exposure status to change over follow-up.

Estimating Conditional Risk From Survival

The survival ratio also shows why a baseline survival probability is not the same quantity as a landmark risk. If survival estimates are available from a cohort with consistent time origin and appropriate handling of censoring, their ratio gives the estimated conditional survival from \(L\) to \(L+h\). This calculation does not remove selection into the landmark cohort; it expresses the risk conditional on surviving to the landmark.

Worked Example: Converting Survival Estimates to Landmark Risk

Suppose hypothetical survival estimates from the original cohort are \(\hat S(6)=0.85\) and \(\hat S(12)=0.70\). The estimated probability of an event between months 6 and 12, conditional on being event-free at month 6, is

$$ 1-\frac{\hat S(12)}{\hat S(6)} =1-\frac{0.70}{0.85} =1-0.8235 =0.1765. $$

The estimated conditional event risk is therefore about 17.65% over the six months after the landmark. The baseline cumulative event probability by month 12 is \(1-0.70=0.30\), or 30%; it answers a different question because it includes events before month 6. The 17.65% estimate applies to people who were event-free at month 6, not to everyone enrolled at baseline.

Diagnostics, Alternatives, and Limitations

Before interpreting a landmark analysis, check the data construction as well as the fitted model. The time origin and risk sets must agree: at residual time zero, all included subjects are eligible at \(L\), and all subsequent event times are measured from \(L\). Check that no post-landmark measurement defines a predictor, no pre-landmark event is coded as a post-landmark outcome, and no time before \(L\) appears in the post-landmark person-time. Verify that censoring before \(L\) has not been mistaken for documented survival to \(L\). These checks catch common implementation errors even when the analysis software runs without warnings.

A landmark model and a time-dependent Cox model address different constructions. A landmark model describes risk conditional on being eligible at a chosen time, using predictor information available then. A time-dependent Cox model can represent an exposure or covariate changing during follow-up, provided its timing is encoded correctly. A joint model uses longitudinal and event information through a different modeling framework. None of these approaches licenses assigning future information to earlier risk time: the chosen method must match the target question and preserve the correct temporal ordering.

Landmarking also has limits. Its conclusions apply to the population eligible at the chosen landmark, not automatically to the original cohort. A single landmark does not describe people who experience the event before it, and a different landmark can define a different eligible population and prediction target. If a predictor is unavailable for some eligible people, excluding them or handling missingness requires a clearly stated approach; silently selecting only those with later measurements can create additional selection and timing problems. These limitations are not repaired by resetting the clock.

Common pitfall: “Everyone eventually classified as treated survived until treatment, so I can count that waiting time as treated follow-up.” The reasoning uses future treatment to label earlier time. The correction is to align exposure with when it was actually observed or initiated, and to begin a landmark analysis at the landmark among eligible subjects. Pre-landmark survival is a condition for cohort membership, not post-landmark event-free follow-up.
Key takeaway: Specify eligibility at \(L\), use only predictor information available by \(L\), and measure outcome follow-up from \(L\). The resulting risk is conditional on being event-free and eligible at that time.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. At landmark \(L=12\) months, a subject has an event at month 10. Should the subject contribute a post-landmark event at residual time \(-2\) months?
  2. A subject is censored at month 9 before a landmark at month 12. What is the eligibility issue?
  3. A group defined by treatment initiation at month 4 has 5 events during 25 person-years after initiation. If analysts wrongly add 10 guaranteed pre-treatment person-years, what are the correct and backdated event rates?
  4. If \(\hat S(4)=0.80\) and \(\hat S(10)=0.60\), what is the estimated event risk from month 4 to month 10 conditional on being event-free at month 4?

Solutions. (1) No. The subject had an event before the landmark and is ineligible for an event-free-at-\(L\) cohort; a negative residual time is not a post-landmark outcome. (2) Censoring before month 12 means event-free status at the landmark is unknown, so the subject cannot be assumed eligible. (3) The correct rate is \(5/25=0.200\) events per person-year. Adding 10 pre-treatment person-years gives \(5/35=0.1429\) events per person-year, which is diluted by time incorrectly credited to treatment. (4) The conditional risk is \(1-\hat S(10)/\hat S(4)=1-0.60/0.80=0.25\), or 25% over the six months after month 4.

Clinical Biostats