Tutorials › Joint Modeling of Longitudinal and Time-to-Event Data › Choosing Prediction Times and Horizons

Calibration and Prediction Validation · Tutorial 548 of 697

Choosing Prediction Times and Horizons

Learn to select prediction times and horizons that define clear, clinically meaningful dynamic-risk targets for validation.

Advanced 10 min read

What You'll Learn

  • Define a landmark time, prediction horizon, and event-free risk set.
  • Express horizon-specific risk as a conditional probability given survival to the landmark.
  • Choose prespecified time grids that match the intended clinical use and available follow-up.
  • Distinguish risks at different landmarks and horizons, even when they concern the same subject.
  • Identify eligibility, timing, and support problems that can make a prediction target unusable.

Why Prediction Times and Horizons Must Be Chosen Together

A dynamic prediction answers a question about a particular subject at a particular time, using information available up to that time. To evaluate such predictions, the target must specify both when the prediction is made and how far ahead it looks. A prediction made at month 6 for the next 12 months is not aimed at the same outcome as a prediction made at month 18 for the next 12 months, even if both are reported as a probability of an event.

The choice also determines who is eligible for evaluation. A subject who has already had the event by the prediction time cannot be asked for their future event risk from that time. Thus each prediction time has its own event-free risk set. The prediction times and horizons should be chosen to reflect the intended use of the model, not selected after inspecting which choices make its performance look best.

Definition: Let \(T\) be the event time measured from a clearly specified time origin. A prediction time or landmark is a time \(s\) at which a prediction is made. A positive horizon \(w\) is the length of time ahead covered by that prediction. For a subject with longitudinal history \(H(s)\) available through \(s\), the horizon-specific event risk is $$ r(s,w\mid H(s))=P(s<T\leq s+w\mid T>s,\ H(s)). $$ The target concerns subjects who are event-free at \(s\), and the event occurs after \(s\) and by \(s+w\). The endpoint convention here includes an event at \(s+w\) and excludes one at \(s\).

The condition \(T>s\) is substantive, not a notational detail. It says the prediction is conditional on having remained event-free to the landmark. For a joint model, \(H(s)\) can include longitudinal measurements observed up to \(s\), and the prediction uses that history to update risk. It must not include measurements collected after \(s\). Whether a subject is eligible is determined separately at each landmark.

Choosing a Useful Evaluation Grid

A study may evaluate predictions at one landmark and one horizon, or at several prespecified combinations \((s,w)\). Each combination defines a distinct target. For example, evaluating 6-month risk at landmarks 6, 12, and 18 months asks about three conditional risks, each among subjects still event-free at its respective landmark. It does not ask for one common risk in a fixed cohort.

A defensible choice starts with the clinical or operational decision. Ask when a prediction could be acted on, how long a decision-maker needs to look ahead, and whether the event has a meaningful interpretation over that interval. A horizon should have a unit and an endpoint: “risk in the next 12 months” is clearer than “short-term risk.” The time origin must also be explicit, such as diagnosis or treatment initiation, so that a landmark has an unambiguous meaning.

  • Prespecify the landmarks. Choose times that correspond to intended updates or decision points. They should be fixed without using the validation outcomes to select favorable results.
  • Prespecify the horizons. Use durations relevant to decisions, and state whether the endpoint is measured from the landmark or from the original time origin. In this tutorial, \(w\) is measured from \(s\).
  • Check event-free availability. At each landmark, enough subjects must be event-free and have the information needed to form predictions. The eligible group will generally change across landmarks.
  • Check outcome support. The validation data need meaningful follow-up over the interval through \(s+w\). A nominally interesting horizon is not useful if outcomes cannot be ascertained there.
  • Limit the grid to interpretable questions. A large grid of landmarks and horizons creates many distinct targets and can leave some targets with little information.

These checks concern the definition and feasibility of the target. They do not, by themselves, resolve how to handle censored outcomes or estimate validation metrics; those require separate methods. If the event is not observed for every subject through the horizon, the distinction between the target and what is observed must be kept explicit.

Worked Example: Translating a Clinical Question Into a Target

Suppose a hypothetical clinic wants to review a patient's risk at 6 months after treatment begins and plan services for the following year. Let \(T\) be time from treatment initiation to the first hospitalization. The question is: among patients not yet hospitalized at month 6, what is the probability of hospitalization by month 18, given their biomarker history through month 6?

The landmark is \(s=6\) months. The horizon is \(w=12\) months, so the endpoint is \(s+w=18\) months. The target is $$ P(6<T\leq18\mid T>6,\ H(6)). $$ A hypothetical patient hospitalized at month 4 is not eligible for this prediction at month 6. A patient event-free at month 6 is eligible, provided their month-6 prediction uses no information recorded after month 6. The event definition is first hospitalization, the time origin is treatment initiation, and the endpoint is measured from the landmark. These choices make the prediction question operational rather than merely labeling it “one-year risk.”

Why Conditional Risk Uses Survival to the Landmark

The relationship between horizon risk and survival probabilities provides a useful check on the target. Write \(S(t\mid H(s))\) for the conditional probability of remaining event-free through time \(t\), given the history available at \(s\). For \(t\geq s\), the probability of surviving from \(s\) to \(t\), conditional on being event-free at \(s\), is \(S(t\mid H(s))/S(s\mid H(s))\), when the denominator is positive. The event by the horizon is the complement of survival through \(s+w\).

$$ \begin{aligned} r(s,w\mid H(s)) &=1-P(T>s+w\mid T>s,H(s))\\ &=1-\frac{S(s+w\mid H(s))}{S(s\mid H(s))}. \end{aligned} $$

This derivation uses the conditional probability identity \(P(A\mid B)=P(A\cap B)/P(B)\), with \(A=\{T>s+w\}\) and \(B=\{T>s\}\). Since \(T>s+w\) implies \(T>s\), their intersection is simply \(\{T>s+w\}\). The ratio is defined only when the conditioning event has positive probability. The formula also makes clear why using \(1-S(s+w\mid H(s))\) alone would be wrong: that quantity includes events before the prediction time, whereas the target is conditional on reaching \(s\) event-free.

Worked Example: Computing a Horizon Risk From Conditional Survival

For a hypothetical patient event-free at month 10, suppose the fitted joint model gives conditional survival probabilities \(S(10\mid H(10))=0.80\) and \(S(16\mid H(10))=0.60\). Find the predicted risk over the next 6 months.

Here \(s=10\), \(w=6\), and \(s+w=16\). Applying the conditional-risk formula, $$ r(10,6\mid H(10)) =1-\frac{0.60}{0.80} =1-0.75 =0.25. $$ The predicted probability of an event between months 10 and 16, conditional on being event-free at month 10 and on the history through month 10, is 0.25, or 25%. The unconditional event probability by month 16 would not answer this question because it would also count events before month 10.

Landmarks Define Different Eligible Groups

Let \(R(s)\) denote the set of subjects who are event-free at landmark \(s\) and for whom a prediction based on information available by \(s\) can be formed. In a fully observed hypothetical data set, membership requires \(T_i>s\); in an actual validation data set, follow-up and availability of required histories also matter. As \(s\) increases, subjects who had the event earlier leave the risk set. Consequently, the target population and the distribution of histories may change across landmarks.

If the same person is event-free at two landmarks, that person can contribute two different prediction occasions. These are not duplicate versions of one outcome: the history is updated, the conditioning event differs, and the future interval moves forward. Any later analysis that combines these occasions must respect their repeated-subject structure and state how occasions are weighted. Choosing landmarks is therefore also choosing which prediction occasions the evaluation is intended to represent.

Worked Example: Constructing Landmark-Specific Targets

Consider five hypothetical subjects with event times, in months from enrollment, of 4, 9, 14, 20, and 30. Suppose predictions are planned at months 6 and 12, each for the following 6 months. Assume for this illustration that all event times and required histories are observed.

At \(s=6\), subjects with \(T>6\) are eligible: subjects 2, 3, 4, and 5. Their event indicators for \(6<T\leq12\) are respectively 1, 0, 0, and 0, so the target outcomes in this tiny illustrative set are \(1,0,0,0\). Subject 1 is excluded because \(T=4\), so the person was not event-free at the prediction time.

At \(s=12\), subjects with \(T>12\) are eligible: subjects 3, 4, and 5. For the interval \(12<T\leq18\), the indicators are respectively 1, 0, and 0. Subject 2 is now excluded because the event occurred at month 9. The two landmarks therefore have different eligible groups, and the observed event proportions, \(1/4=0.25\) and \(1/3\approx0.333\), describe different tiny sets and are not model-performance estimates.

The arithmetic illustrates target construction only. In an actual validation setting, incomplete follow-up can prevent direct classification of some outcomes; these counts should not be interpreted as a method for resolving censoring.

Diagnostics, Alternatives, and Limitations

Before evaluating predictions, check that each prediction occasion is aligned with its target: the subject was event-free at \(s\), the history ends no later than \(s\), and the outcome interval is exactly \((s,s+w]\). Tabulate the number of eligible subjects at every landmark and inspect how many have outcome information over the full horizon. A sharp drop in eligibility or outcome support at later landmarks signals that the corresponding target may be unstable or infeasible. Also confirm that the model can produce predictions for those histories and that the time origin and units agree between predictions and outcome records.

A fixed-horizon prediction made only at baseline is an alternative when the intended use is a single baseline decision. It avoids repeated landmark targets but cannot evaluate updated predictions made later. A single landmark with a long horizon may suit a particular planning question, while a grid of landmarks and horizons examines a broader range of uses. The grid is not automatically better: each additional combination creates another target, often with a smaller eligible group and less follow-up support.

A further alternative is to report prediction performance across event time without fixing a single horizon in advance. Such summaries can be useful, but they answer a different question and can obscure the exact clinical interval of interest. Whichever approach is used, the target should be stated in conditional terms and the evaluated prediction occasions should match it.

The main limitations are practical and interpretive. Late landmarks may leave few event-free subjects; long horizons may extend beyond reliable follow-up; and repeated landmarks can represent some subjects more often than others. A target grid chosen after inspecting validation results can also make reported performance selectively favorable. Prespecification does not guarantee adequate data, but it makes the question transparent and helps distinguish a weak prediction method from an evaluation target that the data cannot support.

Common pitfall: “The one-year risk is the probability of an event by one year,” regardless of when prediction occurs. That statement mixes a baseline cumulative risk with a landmark-conditional risk. At landmark \(s\), the relevant risk is among subjects with \(T>s\), and it covers only \((s,s+w]\). State the time origin, landmark, horizon, and event-free condition together.

Check Your Understanding

Answer each question using the landmark and horizon definitions above. Short solutions follow the questions.

  1. At month 8, a model predicts events during the next 4 months. Write the target event interval and identify who is eligible.
  2. If \(S(12\mid H(12))=0.75\) and \(S(18\mid H(12))=0.45\), what is the predicted risk from month 12 through month 18?
  3. A subject has an event at month 7. Can that subject contribute a prediction occasion at month 6? At month 9?
  4. Why can the event proportion among eligible subjects at month 6 not automatically be compared with the event proportion among eligible subjects at month 12 as if they were measurements in one fixed cohort?
  5. Name two checks that help determine whether a prespecified landmark-horizon combination is feasible to evaluate.

Solutions. (1) The interval is \((8,12]\); eligible subjects satisfy \(T>8\) and have the required history available through month 8. (2) \(1-0.45/0.75=1-0.60=0.40\), so the conditional 6-month risk is 40%. (3) At month 6, yes, because the subject is event-free then, assuming the history is available; at month 9, no, because the event occurred before that landmark. (4) The eligible groups differ because subjects with events before month 12 leave the later risk set, so the proportions refer to different conditional populations. (5) Check the number event-free at the landmark and whether outcome information is available through the horizon; also verify that histories and predictions are available at the landmark and that time units and origins match.

Clinical Biostats