From Landmark Information to a Conditional Prediction
A state-occupation prediction answers a forward-looking question: given what is known about an individual at a landmark, what is the probability that the individual will occupy each possible state after a specified amount of time? Covariates measured at that landmark can distinguish predictions for people who are currently in the same state. They do so by entering the transition models, not by changing the meaning of the state-occupation estimand.
Let \(s\) be the landmark time and \(u>0\) the prediction horizon measured from that landmark. Write \(X(t)\) for the state occupied at time \(t\), and let \(Z(s)=z\) denote the vector of covariate values measured and available at the landmark. If the individual occupies state \(j\) at \(s\), the prediction for state \(k\) is conditional on that current state and the recorded covariates. Where the model requires additional history, such as elapsed time in the current state for a semi-Markov model, that information must also be included in the conditioning.
For a Markov model whose post-landmark transition rates depend on the landmark covariates, write \(q_{jk}^{(s)}(v;z)\) for the instantaneous transition rate from state \(j\) to state \(k\), at elapsed time \(v\) after the landmark. The diagonal entry is \(q_{jj}^{(s)}(v;z)=-\sum_{k\ne j}q_{jk}^{(s)}(v;z)\). These rates form a transition intensity matrix \(Q^{(s)}(v;z)\). For a finite-state Markov model, the conditional state-occupation vector is obtained by applying the transition matrix generated by these covariate-specific rates to the row vector concentrated in the landmark state:
The product integral is written schematically for continuously varying rates; in practice, its numerical calculation uses small time increments or an equivalent solution of the transition-probability equations. The key operation for this tutorial is to evaluate the model at \(z\), then calculate the transition matrix and state probabilities. The prediction is conditional on the specified covariates; it is not a causal effect of changing them.
How Covariates Enter the Calculation
Transition-specific models describe how covariates relate to particular transitions. For example, a proportional intensity model may specify
Here \(q_{jk,0}^{(s)}(v)\) is the baseline transition rate and \(\boldsymbol{\beta}_{jk}\) is the coefficient vector for transition \(j\to k\). The coefficients can differ across transitions: a covariate associated with a higher rate of entering an illness state need not have the same association with a rate of death. For a categorical covariate, the value \(z\) is represented using the model's specified indicator coding; for a continuous covariate, the recorded value is inserted using the fitted scale and functional form.
The model must match the prediction question. Its assumptions include a clearly defined landmark risk set, valid measurement of the covariates by the landmark, adequate representation of the relevant history, and correctly specified transition models. Estimation also requires sufficient data to support the transitions and covariate values being used. If censoring prevents observing later states, the estimation procedure must handle censoring appropriately, under its stated assumptions. These conditions are not verified merely by inserting values into a fitted model.
The landmark covariates are held at their recorded values for the prediction calculation unless the model explicitly specifies a different post-landmark covariate path. Thus a model using \(Z(s)\) makes a prediction conditional on landmark values; it does not automatically account for later changes in a covariate. When dependence on earlier history is important, conditioning only on the current state and \(Z(s)\) may be inadequate. For semi-Markov predictions, for instance, the elapsed time in the current state may also be needed to determine the transition distribution.
Worked Example: Two Competing Absorbing Events
Suppose a hypothetical landmark model starts individuals in state 0 and has two absorbing event states, 1 and 2. Let \(z=1\) indicate a specified covariate category measured at the landmark. The fitted constant rates for this category are \(q_{01}=0.16\) per year and \(q_{02}=0.06\) per year. Calculate the state probabilities two years after the landmark. Assume the constant rates apply over this horizon and the model's conditional event process is appropriate for this landmark risk set.
The total rate of leaving state 0 is \(0.16+0.06=0.22\) per year. The probability of remaining in state 0 for two years is
With constant competing rates, the probability of occupying absorbing state 1 by two years is its share of the total rate multiplied by the probability of leaving state 0:
Similarly, for state 2,
The results are conditional on starting in state 0 with \(z=1\): approximately 64.40% in state 0, 25.89% in state 1, and 9.708% in state 2 at two years. The rates are per year and the horizon is two years. The calculations assume the specified rates remain constant and that the two absorbing states are the only possible destinations from state 0.
Why the Transition Structure Matters
For multiple transient and absorbing states, the probability of occupying a state is not generally obtained by treating each transition separately and adding its rate. An individual may pass through an intermediate state before the horizon, and the chance of doing so depends on the time spent in preceding states. The transition matrix calculation accounts for these pathways. The following derivation shows this for an illness-death model with constant rates.
Worked Example: Covariate-Specific Illness-Death Prediction
Consider a hypothetical illness-death model for individuals in state 0 at the landmark, with \(z=1\). Suppose the covariate-specific fitted rates are \(a=0.30\), \(b=0.10\), and \(c=0.20\) per year. Assume constant rates over the two-year horizon and that the Markov model is adequate conditional on the landmark state and covariate.
Here \(a+b=0.40\) per year. The probability of remaining in state 0 after two years is
The probability of being in state 1 follows from the derived formula:
Therefore,
For this individual, the predicted probabilities at two years are 0.4493 in state 0, 0.3315 in state 1, and 0.2192 in state 2. The state 1 probability includes individuals who entered illness and had not transitioned to death by the horizon; it is not the probability of ever having entered illness.
Worked Predictions Across Discrete Intervals
If transition probabilities are modeled over discrete intervals, the same conditional principle applies. For each interval, evaluate its transition matrix at the landmark covariate values. Multiply the interval-specific matrices in chronological order, then select the row corresponding to the state occupied at the landmark. The resulting row gives the conditional probabilities of occupying each state at the end of the intervals.
Worked Example: Two Covariate-Specific Transition Matrices
Suppose a hypothetical model has three states, 0, 1, and 2, with state 2 absorbing. For an individual in state 0 at the landmark with \(z=1\), the estimated transition matrices for the first and second intervals are
Each row gives the probability of the next state conditional on the current state, interval, and landmark covariate value. The two-interval matrix is \(P_1(z=1)P_2(z=1)\). Since the individual starts in state 0, use its first row:
The terms show the possible intermediate states after the first interval. For example, the final probability of state 2 includes remaining in state 0 and then transitioning to 2, moving from 0 to 1 and then to 2, or entering state 2 in the first interval. This prediction is conditional on \(z=1\); a different covariate value would require the corresponding matrices from the fitted model.
Diagnostics, Alternatives, and Limitations
A covariate-specific prediction can be numerically valid but unreliable. Before interpreting it, check that the covariate values are within the range represented in the landmark data and that the relevant transitions have adequate support for people with similar values. Examine whether the fitted covariate form is plausible, whether transition rates or probabilities behave sensibly across covariate values, and whether the model represents the history needed for the process. Large predictions based on sparse transition data or extrapolation beyond observed covariate values deserve particular caution.
Also check the calculation itself. Transition rates must be nonnegative off the diagonal, and transition probabilities must be between zero and one. For a model in which the listed states exhaust all possibilities, the predicted state probabilities should sum to one, apart from rounding. A failure of these checks may indicate an incorrect matrix order, a coding error, or an inconsistent model. Good arithmetic does not establish that the model assumptions hold.
A marginal Aalen-Johansen estimate can summarize state occupation for a landmark risk set without distinguishing predictions by an individual's covariates. It is useful for a population-level summary, but it does not by itself provide different conditional predictions for different covariate values. Transition-specific models provide a route to such conditional predictions, at the cost of modeling assumptions about each transition. Their predictions are associational and conditional: they do not imply that intervening to change a covariate would cause the predicted probabilities to change accordingly. Unmeasured prognostic factors, model misspecification, and limited support can all affect the prediction.
- Mistake: Insert a landmark covariate into one transition model, then interpret the resulting probability as the chance of ever entering that state. Correction: A state-occupation probability concerns the state at the specified horizon; transition pathways and later exits must be included.
- Mistake: Treat the landmark covariate value as if it described the individual's future covariate trajectory. Correction: The prediction conditions on the recorded value at \(s\). Future covariate changes are represented only if the model explicitly accounts for them.
- Mistake: Call an individualized conditional prediction a causal effect. Correction: It describes a model-based probability conditional on observed information, not the result of an intervention.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- What information does a state-occupation prediction conditional on \(Z(s)=z\) use, and how does that differ from a marginal prediction?
- In a two-event competing-risks model, the rates are 0.10 and 0.15 per year for a specified covariate value. What is the probability of remaining in the starting state after one year under constant rates?
- Why can the probability of occupying an illness state at a horizon differ from the probability of ever entering that state?
- Name two checks that can flag an unreliable covariate-specific prediction.
Solutions. (1) It conditions on the landmark state, the individual's measured covariate values, and any additional history required by the model. A marginal prediction averages over or otherwise summarizes across covariate values in its target population rather than specifying one individual's values. (2) The total rate is \(0.10+0.15=0.25\) per year, so the probability of remaining in the starting state is \(\exp(-0.25\times1)=0.7788\). (3) An individual may enter illness and then leave it before the horizon, for example by transitioning to death; occupation concerns the state at the horizon, while ever-entering concerns whether the transition occurred at any prior time. (4) Examples include checking whether the covariate values lie within observed support, whether transition data are sparse at those values, whether rates or probabilities are plausible, and whether the fitted model captures the required history.