Tutorials › Competing Risks and Multi-State Models › Conditioning Information at a Landmark

Landmarking and Dynamic Prediction · Tutorial 477 of 699

Conditioning Information at a Landmark

Learn to specify a dynamic prediction target by stating exactly which landmark-time information it conditions on and which information must remain averaged over.

Advanced 10 min read

What You'll Learn

  • Define state-, covariate-, and history-conditioned state-occupation probabilities at a landmark.
  • Distinguish a conditional prediction from one averaged over covariates or histories.
  • Identify when one conditioning set contains another and when it does not.
  • Keep the prediction information restricted to what is known at the landmark.
  • Diagnose ambiguous target populations, unsupported conditioning strata, and future-information leakage.

Why Conditioning Information Defines the Prediction

A dynamic prediction is not fully specified by naming an outcome and a future horizon. It also depends on who is being predicted for, and what is known about that person at the landmark. Two predictions of the same future state can differ because one is conditional only on a person's current state, another also uses current covariates, and a third uses the path of states and events observed so far.

The distinction matters for interpretation and for comparing predictions. A probability conditional only on current state generally averages over the covariate and history mix of the target population. A probability conditional on a particular covariate value or history describes a narrower group. These are different estimands, not competing ways of writing the same quantity.

Definition: Let \(T\) be a landmark, \(u>0\) a future horizon, and \(Z(t)\) the state occupied at time \(t\). Write \(S_T=Z(T)\) for the landmark state, \(X_T\) for covariates measured and available by \(T\), and \(H_T\) for the recorded event and state history through \(T\). Let \(A_T=1\) denote membership in the explicitly defined target population at the landmark. For a state \(k\), a landmark state-occupation target has the form \(P\{Z(T+u)=k\mid A_T=1,\mathcal I_T\}\), where \(\mathcal I_T\) names the information being conditioned on. Examples include \(S_T\), \((S_T,X_T)\), or \(H_T\).

The target population \(A_T=1\) must be specified before interpreting the probability. It could, for example, consist of individuals meeting a stated eligibility condition at \(T\). This tutorial concerns the information conditioned on within that population, not how to construct an analysis risk set. The state, covariates, and history in the conditioning statement refer to information available no later than \(T\). The future state \(Z(T+u)\) is the outcome.

A history \(H_T\) may include the current state, previous states, event times or types, and time-varying covariate measurements, depending on what was recorded and declared relevant. If it contains the full state path through \(T\), then it includes \(S_T\). It may also contain \(X_T\), but only if those covariates are part of the recorded history. By contrast, the conditioning set \((S_T,X_T)\) need not contain earlier state changes or event times.

Three Common Conditioning Targets

A state-conditioned target, \(P\{Z(T+u)=k\mid A_T=1,S_T=s\}\), describes the future state distribution among eligible individuals who occupy state \(s\) at the landmark. Unless the target population has further restrictions, it averages over their covariates and earlier histories. Thus, the target can depend on how those covariates and histories are distributed among people in state \(s\).

A state-and-covariate-conditioned target, \(P\{Z(T+u)=k\mid A_T=1,S_T=s,X_T=x\}\), additionally fixes the covariate value \(x\). It does not, by itself, fix all earlier history. If individuals with the same \(s\) and \(x\) have different relevant histories, this target still averages over those histories as represented in the eligible population.

A history-conditioned target, \(P\{Z(T+u)=k\mid A_T=1,H_T=h\}\), conditions on the specified recorded path through \(T\). It can distinguish people who occupy the same state now but arrived there by different routes. Its specificity comes with a practical cost: detailed histories may define small groups, and some histories may be absent from the data.

These targets can be nested, but only when their information sets really are nested. For example, if \(H_T\) includes both \(S_T\) and \(X_T\), conditioning on \(H_T\) is at least as specific as conditioning on \((S_T,X_T)\). A covariate-only target and a history-only target are not necessarily nested. Each may contain information absent from the other.

Worked Example: Averaging Over Covariates Within a State

Suppose a hypothetical eligible population has two covariate groups at the landmark, low and high. All individuals in this example occupy state A at \(T\). The high group makes up 40% of the population, and the low group makes up 60%. At horizon \(u\), the state-occupation probability for state B is 0.30 in the high group and 0.10 in the low group. Find the state-only probability for state B.

The state-only target conditions on \(S_T=\mathrm{A}\) but averages over the covariate groups in this population. By the law of total probability,

$$ P\{Z(T+u)=\mathrm{B}\mid A_T=1,S_T=\mathrm{A}\} = \sum_x P\{Z(T+u)=\mathrm{B}\mid A_T=1,S_T=\mathrm{A},X_T=x\} P\{X_T=x\mid A_T=1,S_T=\mathrm{A}\}. $$

Substituting the group probabilities and weights gives \(0.30(0.40)+0.10(0.60)=0.12+0.06=0.18\). Thus, the state-only target is 0.18, or 18% at horizon \(u\), for this specified covariate mix. It is not the prediction for every person in state A: the corresponding group-specific values are 30% and 10%.

If a different eligible population had 70% high and 30% low covariate-group membership, the state-only target would instead be \(0.30(0.70)+0.10(0.30)=0.24\). The conditional group probabilities are unchanged, but the marginalized target changes because the covariate composition changes.

Marginalization and the Role of History

The averaging in the example is an instance of a general identity. If \(X_T\) is discrete, a target that does not condition on \(X_T\) can be obtained by averaging the covariate-specific target over the covariate distribution in the population that is already conditioned on. For continuous covariates, the sum is replaced by an integral. The weights must correspond to that target population and conditioning set; using a different population's weights defines a different marginal target.

The same logic applies to histories. A probability conditional on current state can average over multiple histories ending in that state. If history matters for future state occupation, the history-specific probabilities need not be equal. Consequently, state-only prediction is not automatically a prediction that applies uniformly to everyone currently in that state.

This identity is a decomposition, not a claim that the covariate or history causes the future outcome. It also does not prescribe how to estimate the conditional probabilities or the averaging weights. The target is defined first; estimation is a separate task.

Worked Example: Two Histories Ending in the Same State

Consider a hypothetical eligible population in state A at \(T\). Some individuals remained in A throughout the observed period, while others moved from state B to A before the landmark. Suppose the second group is 30% of this population. The state-B occupation probabilities at horizon \(u\) are 0.25 for the B-to-A history and 0.08 for the history of remaining in A. Find the probability conditional only on current state A.

Let \(G\) identify these two histories. The state-only target averages over \(G\):

$$ P\{Z(T+u)=\mathrm{B}\mid A_T=1,S_T=\mathrm{A}\} = 0.25(0.30)+0.08(0.70) = 0.075+0.056 = 0.131. $$

The probability is 13.1% for the stated mix of histories. It is 25% for the B-to-A history and 8% for the history of remaining in A. The overall value does not erase that distinction; it summarizes the mixture in this target population. If the proportions of histories differ elsewhere, the state-only probability may differ as well.

What Counts as Information at the Landmark?

For a prediction intended to be made at \(T\), every conditioning variable must be known by \(T\). A measurement taken after \(T\), a later event, or the future outcome itself cannot be used as if it were landmark-time information. Conditioning on such information changes the question: it describes a subgroup defined partly by what happens after the prediction is meant to be made.

The definition of \(X_T\) should therefore specify both the covariate and its measurement time. A baseline measurement and a value updated at the landmark are not interchangeable labels. Similarly, a history-conditioned target must say which events and measurements are included in \(H_T\), and what observation window ends at the landmark. Ambiguous labels such as “adjusted for history” do not identify a unique target.

Before a target is used, check that its conditioning information is well-defined for the target population and that the relevant groups have support. If a requested covariate value or history does not occur among eligible individuals, its conditional probability is not identified from those data without additional assumptions. Sparse groups can also make estimates unstable even when the group is not empty.

Worked Example: Preventing Future-Information Leakage

Suppose a hypothetical population at \(T\) is divided by a test result already measured at \(T\): 60% have \(X_T=0\), and 40% have \(X_T=1\). The probabilities of occupying state B at horizon \(u\) are 0.10 and 0.30, respectively. Calculate the landmark prediction marginalized over this covariate, then distinguish it from a prediction using a test result measured after \(T\).

The valid landmark-marginal target is \(0.10(0.60)+0.30(0.40)=0.06+0.12=0.18\). It is an 18% state-B probability for the stated population mix, using only information available at \(T\).

Now suppose a second test is measured after \(T\). Even if that later result is strongly associated with state B at \(T+u\), conditioning on it does not produce the same prediction target: the result was unavailable at the landmark. A probability conditional on the later test is a retrospective or later-updated conditional description, not the prediction specified at \(T\). To make a prediction at a later time, the prediction landmark and target would have to be redefined.

Assumptions, Comparisons, and Failure Modes

Conditioning targets are mathematical quantities, but their use requires clear assumptions and definitions. The state system must assign a meaningful state at the horizon; the landmark and horizon must be the same for the people being summarized; and the target population and conditioning variables must be specified. To interpret an estimated conditional probability as a prediction for a group, that group must be represented in the data, and the estimation procedure must adequately capture its outcome distribution. These conditions do not make the prediction causal.

The main alternatives differ in the question they answer. Conditioning only on state gives a broader summary and averages over covariates and histories. Adding covariates gives a more tailored conditional target, while conditioning on recorded history can distinguish different routes to the same current state. A marginal target for a chosen population can also be obtained by averaging conditional predictions over a specified covariate or history distribution. Such averaging is useful for population summaries, but the chosen distribution must be reported because another choice can yield another answer.

A useful check is to write the conditioning statement in words and then compare it with the intended use. If the intended use is an individual prediction based on current state and measured covariates, a state-only target may be too broad. If the aim is a population-level state-occupation probability, a history-specific target may be unnecessarily narrow unless it will be averaged back over a stated history distribution.

Common warning signs include reporting a probability without naming the target population, treating a state-only probability as universal across covariate groups, or using a post-landmark measurement in a prediction said to be available at \(T\). Another failure mode is assuming that current state summarizes all relevant history. That may be a modeling assumption in a particular application, but it does not follow from the definition of conditioning on state. Diagnostics should therefore compare the declared target with the actual data collection times, subgroup support, and intended prediction use.

Key takeaway: A dynamic prediction target is defined by its future state, horizon, target population, and landmark-time conditioning information. State, covariate, and history conditioning answer distinct questions; marginalizing over omitted information requires weights from a stated population.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions.

  1. A state-only target conditions on current state A. Does it automatically fix the individual's covariates and earlier path?
  2. Among eligible individuals in state C, 25% are in covariate group 1 with future state-D probability 0.20, and 75% are in group 0 with probability 0.08. What is the state-only probability for state D?
  3. When does a history-conditioned target contain the information in a state-and-covariate-conditioned target?
  4. Why is a laboratory result measured after the landmark not a valid conditioning variable for a prediction made at the landmark?
  5. Two populations have identical covariate-specific probabilities but different covariate mixes. Must their state-only targets be equal? Explain.

Solutions. (1) No. It averages over covariates and histories within the target population, unless they are otherwise fixed by the definition. (2) \(0.20(0.25)+0.08(0.75)=0.05+0.06=0.11\), or 11%. (3) When the defined history includes both the current state and the covariates in question. (4) It was not known at the prediction time, so conditioning on it changes the target and leaks future information into a landmark-time prediction. (5) No. The marginal probability averages the conditional probabilities using the population's covariate weights, which differ between the populations.

Clinical Biostats