Tutorials › Joint Modeling of Longitudinal and Time-to-Event Data › Repeated Landmark Predictions for One Patient

Landmarking as an Alternative · Tutorial 630 of 697

Repeated Landmark Predictions for One Patient

Learn how to calculate and interpret a patient’s sequence of landmark risks as new measurements arrive, with each prediction conditioned on being event-free and eligible at that time.

Intermediate 11 min read

What You'll Learn

  • Define a patient’s eligibility for prediction at each landmark time.
  • Calculate repeated fixed-horizon risks from a pooled landmark logistic model.
  • Derive residual-time event risk from a landmark Cox model.
  • Explain why predictions at different landmarks condition on different risk sets.
  • Check eligibility, outcome ascertainment, and calibration when interpreting a prediction sequence.
  • Distinguish repeated conditional predictions from one cumulative prediction made at baseline.

Why a Patient Can Have More Than One Risk Prediction

A prediction made today may no longer be the most useful prediction after a patient returns for another visit and a new biomarker result is recorded. Landmarking provides a way to update the forecast: at each selected time, estimate the patient’s risk over a specified future horizon using the information available by that time. The result is a sequence of predictions, not one forecast that remains fixed throughout follow-up.

The key qualification is that each prediction is conditional on the patient being event-free and eligible at its landmark. A patient who has had the event cannot receive a later event-risk prediction of this kind. Nor should a patient who is no longer under observation be treated as known to be event-free. Thus the set of patients eligible to inform the model can change from one landmark to the next.

Definition: Let \(T_i\) denote patient \(i\)’s event time, \(C_i\) their censoring time, and \(t_k\) a landmark time. The patient is eligible at \(t_k\) if they are known to be event-free and under observation immediately before that time (in the usual convention, \(T_i>t_k\) and \(C_i>t_k\)), and the information required by the prediction model is available by \(t_k\). A horizon-\(\Delta\) landmark prediction is the probability of an event during \((t_k,t_k+\Delta]\), conditional on eligibility and information available at \(t_k\).

Write \(H_i(t_k)\) for the patient information available by landmark \(t_k\), including the biomarker information used by the fitted model. The estimand for that patient is

$$ r_i(t_k,\Delta) = P\!\left(t_k<T_i\le t_k+\Delta \mid T_i>t_k,\ H_i(t_k)\right). $$

This is a conditional risk for the next \(\Delta\) time units, not the patient’s probability of ever having the event and not, by itself, the probability of the event by \(t_k+\Delta\) measured from study entry. The conditioning information changes as follow-up proceeds. For this reason, two predictions for the same person can differ even when both are correctly calculated.

How the Sequence Is Produced

A pooled landmark model uses eligible patient-landmark records from multiple landmark times to estimate a shared prediction rule. In a fixed-horizon logistic version, the outcome for a record is whether the event occurs within the horizon after its landmark. The model may include landmark time as well as the covariates available at that time. For illustration, let \(x_i(t_k)\) be a biomarker measured by \(t_k\). A simple model is

$$ \operatorname{logit}\{r_i(t_k,\Delta)\} = \alpha+\gamma t_k+\beta x_i(t_k), \qquad \operatorname{logit}(p)=\log\!\left(\frac{p}{1-p}\right). $$

This model assumes that the specified linear predictor adequately describes the log odds of the event during the horizon among eligible records, that the fitted probabilities are applicable to the patient’s setting, and that outcomes for the horizon are handled appropriately. In particular, a record censored before the horizon ends does not automatically have a known event-free outcome for the whole horizon; the analysis must use an appropriate censoring strategy. The model also requires that the biomarker value used at a landmark was actually available by that time. Using a later measurement would leak future information into the prediction.

At each landmark, the model is evaluated using that time’s covariate information. The same patient may therefore contribute more than one eligible record to model fitting, but these records are not independent people. Inference and validation should account for repeated records from the same patient, for example by resampling patients rather than individual rows. A predicted probability for one patient is still a model-based conditional prediction; it is not made more certain merely because that patient appears at several landmarks.

Worked Example: Updating a Three-Month Risk

Suppose a hypothetical pooled logistic model predicts event risk over the next three months. Its fitted equation is

$$ \operatorname{logit}\{r_i(t,3)\} = -4.00+0.120t+0.060x_i(t), $$

where \(t\) is measured in months since study entry and \(x_i(t)\) is the biomarker in mg/L. A hypothetical patient is event-free and observed at months 0, 3, and 6, with biomarker measurements of 20, 30, and 18 mg/L, respectively. At month 0, the linear predictor is

$$ \eta_0=-4.00+0.120(0)+0.060(20)=-2.80, \qquad r_i(0,3)=\frac{e^{-2.80}}{1+e^{-2.80}}=0.05732. $$

The predicted risk of an event during months 0 through 3, conditional on being eligible at month 0 and using the information then available, is 5.73%.

At month 3, the patient remains eligible and the new measurement is 30 mg/L:

$$ \eta_3=-4.00+0.120(3)+0.060(30)=-1.84, \qquad r_i(3,3)=\frac{e^{-1.84}}{1+e^{-1.84}}=0.1370. $$

The predicted risk during months 3 through 6, conditional on still being event-free and observed at month 3, is 13.70%. At month 6, using 18 mg/L,

$$ \eta_6=-4.00+0.120(6)+0.060(18)=-2.20, \qquad r_i(6,3)=\frac{e^{-2.20}}{1+e^{-2.20}}=0.09975. $$

The three predictions are 5.73%, 13.70%, and 9.98% for three different future intervals. Their changes reflect both the updated biomarker and the landmark-time term in the fitted model. Each percentage applies only to patients still eligible at its corresponding landmark; the values are not three estimates of one unchanging risk.

Why the Risk Set Changes

Let the landmark risk set consist of patients known to be event-free and uncensored at that landmark, with the required prediction information available. As time advances, some patients experience the event, are censored, or lack information needed for prediction. They cannot simply be carried forward as if they remained eligible. The patient-specific sequence is therefore defined only at landmarks where the patient is eligible.

The same conditioning applies to the model’s training data. A record at \(t_k\) describes a patient who has survived event-free and remained observed to \(t_k\). A later landmark’s records describe a different, selected risk set: patients who have also remained event-free and observed for longer. Consequently, a risk at \(t_{k+1}\) is conditional on reaching \(t_{k+1}\), not a re-expression of the risk that was calculated at \(t_k\).

Worked Example: Eligibility After an Event

Consider a hypothetical cohort with 100 eligible patients at month 0, 82 at month 3, and 63 at month 6. One patient is eligible at months 0 and 3, has biomarker values of 10 and 20 mg/L, and experiences the event at month 5. Suppose the fitted three-month model for this illustration is

$$ \operatorname{logit}\{r_i(t,3)\}=-2.50+0.100t+0.050x_i(t), $$

with time in months and biomarker in mg/L. At month 0, the patient’s predicted risk is

$$ \eta_0=-2.50+0.100(0)+0.050(10)=-2.00, \qquad r_i(0,3)=\frac{e^{-2.00}}{1+e^{-2.00}}=0.1192. $$

That is a 11.92% predicted risk for months 0 through 3, conditional on eligibility at month 0. At month 3, the patient is still event-free and observed, so a new prediction is permitted:

$$ \eta_3=-2.50+0.100(3)+0.050(20)=-1.20, \qquad r_i(3,3)=\frac{e^{-1.20}}{1+e^{-1.20}}=0.2315. $$

This is a 23.15% predicted risk for months 3 through 6, conditional on eligibility at month 3. The event at month 5 falls in that interval. The patient is not eligible at month 6, so there is no valid month-6 prediction for this event. The cohort counts also show why the month-3 model record belongs to a risk set of 82, not the original 100. The predictions do not establish that the biomarker change caused the event; they are conditional forecasts from a fitted model.

Deriving Risk from a Landmark Cox Model

A landmark Cox model can instead describe the hazard after a landmark. Let \(s\) denote elapsed time since \(t_k\), and suppose the model for an eligible patient is

$$ h_{ik}(s\mid x_i(t_k)) = h_{0k}(s)\exp\{\beta x_i(t_k)\}. $$

This assumes proportional hazards over residual time \(s\), with the stated covariate effect and baseline cumulative hazard \(H_{0k}(\Delta)=\int_0^\Delta h_{0k}(s)\,ds\). Integrating the hazard gives the conditional survival probability to the end of the horizon. The conditional risk is one minus that survival probability:

$$ \begin{aligned} r_i(t_k,\Delta) &=1-P(T_i>t_k+\Delta\mid T_i>t_k,\ x_i(t_k))\\ &=1-\exp\!\left[-H_{0k}(\Delta)\exp\{\beta x_i(t_k)\}\right]. \end{aligned} $$

The baseline cumulative hazard may be specific to the landmark, depending on how the landmark Cox model was fitted. The formula makes the conditioning explicit: it predicts survival over residual time among patients who have reached the landmark event-free. It does not use the survival probability from study entry as though the patient were still in the original risk set.

Worked Example: Calculating Cox-Based Risks at Three Landmarks

For a hypothetical patient, suppose a landmark Cox model uses \(x_i(t_k)\) in units of 10 mg/L above a reference value, with \(\beta=0.500\). The fitted baseline cumulative hazards over the next three months are 0.0400, 0.0700, and 0.1000 at landmarks 0, 3, and 6 months. The patient’s corresponding biomarker covariates are 1.0, 2.0, and 0.5. Assume the patient is eligible at all three landmarks and the proportional-hazards model is adequate over each horizon.

At month 0, \(H_{00}(3)=0.0400\) and \(\exp(0.500\times1.0)=1.6487\). Thus

$$ r_i(0,3) = 1-\exp[-0.0400(1.6487)] = 1-\exp(-0.06595) = 0.06382. $$

The conditional three-month risk is 6.382%. At month 3,

$$ r_i(3,3) = 1-\exp[-0.0700\exp(0.500\times2.0)] = 1-\exp[-0.0700(2.7183)] = 0.1732. $$

The conditional risk is 17.32%. At month 6,

$$ r_i(6,3) = 1-\exp[-0.1000\exp(0.500\times0.5)] = 1-\exp[-0.1000(1.2840)] = 0.1205. $$

The 6.382%, 17.32%, and 12.05% values refer to successive three-month intervals among patients eligible at months 0, 3, and 6, respectively. They use the corresponding landmark baseline hazards and covariate values. They are not probabilities that can be substituted for one another or interpreted without their landmark.

Checking a Prediction Sequence and Choosing an Approach

A sequence is useful only when each prediction is attached to the right patient state and time interval. Before interpreting it, verify that the patient was eligible at every stated landmark, that each biomarker value was available by that landmark, and that the horizon and event definition stayed consistent. Check that the fitted model includes an adequate representation of landmark time and that its predictions are calibrated at the landmark times and horizons relevant to use. A pooled average calibration result can conceal poor calibration at a particular time.

Pooled landmark models use records from several times to estimate a common structure and can make efficient use of data when the model is suitably specified. Fitting a separate model at every landmark allows more time-specific behavior but may be unstable when few patients remain at later landmarks. A single baseline prediction avoids repeated updating but cannot use measurements that arrive later. These approaches answer different operational questions; none makes the risk sets identical.

ApproachWhat it providesImportant caution
Repeated pooled landmark predictionsUpdated conditional risks using information available at each landmarkAccount for changing eligibility and repeated records from a patient
Separate model at each landmarkTime-specific fitted relationshipsLater models may have fewer eligible patients and less precision
One baseline predictionA forecast made using information available at study entryDoes not incorporate subsequent measurements

A common mistake is to say, “The patient’s risk increased from 5.73% to 13.70%, so the probability of the event over the whole six months is 13.70%.” That reasoning treats the month-3 prediction as if it were an unconditional baseline probability. It is not: 13.70% is conditional on being event-free and eligible at month 3 and refers only to the next three months. The correction is to report the landmark and horizon with every risk, and not to combine conditional predictions into a baseline cumulative risk unless a model and calculation specifically justify that target.

Landmark predictions also have limits. They describe risk among patients who reach each landmark and can therefore differ across times partly because the eligible patients have changed. They depend on the model, the measured information, outcome ascertainment, and the handling of censoring. A sequence is a set of conditional predictions, not a causal account of what a biomarker change does to an individual.

Check Your Understanding

Answer each question, then compare with the solutions.

  1. A patient is event-free and observed at month 4. What interval does a six-month landmark risk cover, and what is it conditional on?
  2. At a landmark, a fitted logistic model has linear predictor \(-1.00\). Calculate the predicted probability.
  3. A patient experiences the event at month 7. Is a month-9 landmark prediction for that event appropriate? Explain.
  4. Why can an eligible risk set at month 6 be smaller than the one at month 3?
  5. A Cox landmark model has \(H_0(2)=0.0500\) over a two-month residual horizon and \(\exp(\beta x)=2.00\). Calculate the conditional risk.

Solutions. (1) It covers events in \((4,10]\), conditional on being event-free and observed at month 4 and on information available by then. (2) \(p=e^{-1}/(1+e^{-1})=0.2689\), or 26.89%. (3) No. The patient experienced the event before month 9 and is not eligible for a later event-risk prediction. (4) Some patients may have experienced the event, been censored, or lacked required information between months 3 and 6. (5) \(r=1-\exp[-0.0500(2.00)]=1-\exp(-0.100)=0.09516\), or 9.516% over the next two months among patients eligible at that landmark.

Clinical Biostats