Tutorials › Competing Risks and Multi-State Models › Individualized State Probabilities From Transition-Specific Models

Landmarking and Dynamic Prediction · Tutorial 486 of 699

Individualized State Probabilities From Transition-Specific Models

Use a person's covariates and fitted transition-specific models to calculate their model-based probabilities of occupying each state at a future horizon.

Advanced 12 min read

What You'll Learn

  • Translate fitted transition-specific hazards into covariate-specific transition probabilities.
  • Combine transitions across intervals using matrix multiplication.
  • Calculate state-occupation probabilities for a specified covariate profile and horizon.
  • Check the Markov, model-fit, support, and probability-coherence assumptions.
  • Distinguish individualized model-based predictions from pooled estimates and direct horizon models.

From Transition Models to Individualized Predictions

A transition-specific model describes how the rate of moving from one state to another depends on a person's covariates. To make a prediction, however, we usually need a different quantity: the probability that this person occupies each state at a specified future time. This tutorial connects those quantities. It treats the fitted models as inputs and focuses on translating their predictions into a coherent distribution over states.

Suppose the observed state at a landmark is \(r\), the prediction horizon is \(t\) time units later, and the person's covariate profile is \(z\). An individualized prediction is conditional on that profile and the landmark information used to define the target. It is a model-based probability, not a claim that the person's future state is known with certainty.

Definition: Let \(S\) be the set of modeled states. The individualized state-occupation probability for state \(j\in S\) at time \(t\), conditional on starting in state \(r\) and covariates \(z\), is \(P\{X(t)=j\mid X(0)=r,z\}\). The vector of these probabilities, one for every state in \(S\), is the individualized state-occupation prediction.

Here time zero denotes the prediction landmark. The covariates may be fixed at their landmark values, or a prespecified covariate path may be used if the models allow time-varying covariates. We first describe the fixed-profile case. The state process must be Markov conditional on the covariates being used: given the current state and that covariate information, the future transition law does not also depend on unmodeled earlier state history.

Transition-Specific Models and the Prediction Calculation

For distinct states \(i\) and \(j\), write \(q_{ij}(u\mid z)\) for the transition intensity from \(i\) to \(j\) at elapsed time \(u\), conditional on covariates \(z\). It is the instantaneous transition rate among individuals currently in state \(i\), in the sense that, over a short interval of length \(h\), the transition probability is \(q_{ij}(u\mid z)h+o(h)\). Set \(q_{ii}(u\mid z)=-\sum_{j\ne i}q_{ij}(u\mid z)\); entries for impossible transitions are zero. The resulting matrix \(Q(u\mid z)\) is the transition intensity matrix.

A common transition-specific proportional hazards specification is \(q_{ij}(u\mid z)=q_{ij,0}(u)\exp(\beta_{ij}^{T}z)\), with a distinct baseline intensity and covariate coefficient vector for each modeled transition. Other parametric or semiparametric transition-specific specifications may be used. For a particular person, substituting their covariates into each fitted transition model gives their predicted transition intensities.

Those intensities must then be combined across possible paths. If \(P(a,b\mid z)\) denotes the matrix whose \((i,j)\) entry is the probability of being in state \(j\) at time \(b\), given state \(i\) at time \(a\) and covariates \(z\), the individualized prediction from starting state \(r\) is row \(r\) of that matrix. For a time-homogeneous intensity matrix, \(P(a,b\mid z)=\exp\{(b-a)Q(z)\}\). With time-varying intensities, the transition matrix is obtained by solving the forward transition equations, or equivalently by the corresponding product integral.

$$ \mathbf{p}(t\mid r,z)=\mathbf{e}_r^{T}P(0,t\mid z) $$

Here \(\mathbf{e}_r^{T}\) is a row vector with a 1 in the starting-state position and 0 elsewhere. If the interval is split at an intermediate time \(u\), the Markov property gives \(P(0,t\mid z)=P(0,u\mid z)P(u,t\mid z)\). In components, the probability of ending in \(j\) is the sum over every possible intermediate state \(k\) of the probability of reaching \(k\) by \(u\), multiplied by the probability of reaching \(j\) from \(k\) by \(t\).

$$ P_{rj}(0,t\mid z)=\sum_{k\in S}P_{rk}(0,u\mid z)P_{kj}(u,t\mid z) $$

This identity explains why the calculation accounts for all possible routes through the state system. It also shows why a single transition's fitted hazard is generally not itself the desired state probability: a person can enter, leave, or revisit states before the horizon.

Worked Examples

Worked Example: Combining Two One-Year Transition Matrices

Consider a hypothetical two-state system, with states \(A\) and \(B\). For a particular covariate profile, suppose the fitted transition-specific models yield the following one-year transition probabilities for year one and year two, respectively:

$$ P_1= \begin{pmatrix} 0.70&0.30\\ 0.25&0.75 \end{pmatrix}, \qquad P_2= \begin{pmatrix} 0.9176&0.0824\\ 0.2473&0.7527 \end{pmatrix}. $$

Assume the person starts in \(A\), the Markov assumption holds conditional on the modeled covariates, and the covariate profile used for both intervals is appropriate. After year one, the probabilities of occupying \(A\) and \(B\) are 0.70 and 0.30. The probability of occupying \(A\) after two years sums the paths through both possible intermediate states:

$$ P\{X(2)=A\mid X(0)=A,z\} =0.70(0.9176)+0.30(0.2473) =0.64232+0.07419 =0.71651. $$

Thus the predicted probability of \(A\) is 0.7165, and the probability of \(B\) is its complement, 0.2835. The two probabilities sum to one because \(A\) and \(B\) are the only modeled states and the person must occupy one of them at the horizon.

A related calculation illustrates the importance of using the displayed inputs accurately. If the first-year probability of \(A\) is instead 0.6992, the probability of \(B\) is 0.3008, and the second-year probabilities of moving to \(A\) are 0.9176 from \(A\) and 0.2473 from \(B\), then:

$$ 0.6992(0.9176)+0.3008(0.2473) =0.64158592+0.07438784 =0.71597376\approx0.7160. $$

The complementary probability is \(1-0.71597376=0.28402624\), or 0.2840 to four decimal places. These are conditional model-based probabilities for the stated profile and starting state, not observed frequencies for a particular person.

Worked Example: Continuous-Time Illness-Death Prediction

Suppose hypothetical transition-specific models, evaluated at one person's covariate profile, give constant rates per year of 0.12 from healthy state 0 to illness state 1, 0.08 from state 0 to death state 2, and 0.25 from state 1 to state 2. Death is absorbing and there are no other transitions. Assume these rates remain constant over the two-year prediction interval and that the illness-death process is Markov conditional on the profile.

While in state 0, the total rate of leaving is \(a=0.12+0.08=0.20\) per year. Therefore, the probability of still being in state 0 at time \(t\) is \(e^{-0.20t}\). At \(t=2\), this is \(e^{-0.4}=0.670320\).

To be in state 1 at time \(t\), the person must leave state 0 for state 1 at some time \(u\), then remain in state 1 until \(t\). The density contribution for this path is \(e^{-0.20u}(0.12)e^{-0.25(t-u)}\). Integrating over all possible entry times gives:

$$ P_{01}(0,t\mid z) =\int_0^t e^{-0.20u}(0.12)e^{-0.25(t-u)}\,du =\frac{0.12\{e^{-0.20t}-e^{-0.25t}\}}{0.25-0.20}. $$

At two years, \(e^{-0.50}=0.606531\), so the illness-state probability is \(0.12(0.670320-0.606531)/0.05=0.153095\). Since the three states are exhaustive and mutually exclusive, the probability of death is the remainder: \(1-0.670320-0.153095=0.176585\). The predicted state probabilities are therefore 0.6703 healthy, 0.1531 ill, and 0.1766 dead, to four decimal places. Their sum is 1.0000.

The exponential calculation is appropriate here because the example explicitly assumes constant transition rates. In an application, a time-varying fitted intensity would instead be integrated through the transition equations; substituting one constant rate would not generally be justified.

Worked Example: Multiplying Fitted Matrices Across Two Intervals

For a different hypothetical system with states 0, 1, and 2, suppose a person's covariates produce the following fitted transition matrices over two successive intervals:

$$ P_1= \begin{pmatrix} 0.70&0.20&0.10\\ 0&0.80&0.20\\ 0&0&1 \end{pmatrix}, \qquad P_2= \begin{pmatrix} 0.75&0.15&0.10\\ 0&0.70&0.30\\ 0&0&1 \end{pmatrix}. $$

Assume state 2 is absorbing, the matrices apply to the person's profile in their respective intervals, and the Markov assumption holds. Starting in state 0, the probability of being in state 0 at the end is \(0.70(0.75)=0.525\). The probability of state 1 adds the paths through state 0 and state 1 at the intermediate time:

$$ 0.70(0.15)+0.20(0.70)=0.105+0.140=0.245. $$

The probability of state 2 is \(0.70(0.10)+0.20(0.30)+0.10(1)=0.070+0.060+0.100=0.230\). Thus the final prediction is \((0.525,0.245,0.230)\), which sums to 1.000. The calculation includes the possibility of reaching the absorbing state in either interval, rather than treating only the final interval's transition as relevant.

Assumptions, Diagnostics, and Alternatives

The multiplication or integration is only as credible as its inputs and assumptions. In particular, check that the modeled state set includes all outcomes relevant to the prediction; the person starts in the stated landmark state; the transition models apply to the covariate profile; and the conditional Markov assumption is plausible for the covariates and state history represented. If a model uses fixed covariates, it also assumes that the prediction appropriately treats those covariates as fixed over the horizon. The fitted transition models must represent the relevant transition-specific hazards, and the data must provide adequate support for the profile and transitions being predicted.

Useful numerical and statistical checks include:

  • Each transition-probability matrix should have entries between 0 and 1, with each row summing to 1 up to rounding error.
  • The final state probabilities should be nonnegative and sum to 1. A meaningful discrepancy suggests a matrix-orientation error, omitted state, or faulty calculation.
  • Check whether predicted transition rates are plausible and whether fitted transition-specific models show serious lack of fit, such as an untenable proportional-hazards assumption when that model was used.
  • Examine whether the person's covariate profile lies within the data's support and whether the relevant transitions have enough observations. Sparse or absent transitions can make profile-specific predictions unstable or unsupported.
  • Compare predicted state occupation with observed outcomes in appropriate validation data. A coherent set of probabilities can still be poorly calibrated.

A common mistake is to calculate the probability of the final state using only the transition model leaving the starting state, as though intermediate transitions could not occur. The correction is to combine all modeled paths through intermediate states, using matrix multiplication or the corresponding continuous-time transition equations. Another mistake is to read a predicted probability as a personal guarantee. A value of 0.716 means the model assigns probability 0.716 to state \(A\) for people with the specified information and covariates under its assumptions; it does not make the individual's eventual state certain.

Individualized predictions differ from pooled state-occupation estimates, which average over or otherwise summarize a target group rather than applying transition models to a specified profile. They also differ from direct horizon models, which model the state at the target time without necessarily constructing transition paths. Direct models may avoid some transition-process assumptions, but they do not automatically provide a coherent account of intermediate states or a full trajectory. Transition-specific models make path structure explicit, at the cost of relying on the adequacy of each transition model and their joint combination.

These are plug-in predictions: they use fitted model estimates as if fixed. They do not, by themselves, quantify uncertainty from estimating the transition models. They may also be unreliable when the Markov assumption fails, when covariates evolve in ways not represented by the models, or when predictions require extrapolation beyond observed follow-up or covariate support.

Key takeaway: To predict an individual's future state probabilities, evaluate each transition-specific model at the person's covariate profile, convert the resulting hazards into transition probabilities over the prediction horizon, and combine all possible paths. Check the assumptions and probability arithmetic before interpreting the result.

Check Your Understanding

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

  1. A two-state system has first-interval probabilities \((0.6,0.4)\) from starting state \(A\). In the next interval, the probabilities of moving to \(B\) are 0.2 from \(A\) and 0.5 from \(B\). What is the probability of occupying \(B\) at the final horizon?
  2. Why does an individualized prediction require more than evaluating the hazard for the transition directly out of the starting state?
  3. For a time-homogeneous model with intensity matrix \(Q(z)\), write the transition matrix over an interval of length \(t\).
  4. A calculated three-state prediction is \((0.45,0.35,0.25)\). What diagnostic issue should be checked first?

Solutions. 1. The final probability of \(B\) is \(0.6(0.2)+0.4(1-0.5)=0.12+0.20=0.32\). 2. The process may pass through intermediate states, and each possible route contributes to the final state probability; combine these routes using the transition matrix. 3. The matrix is \(\exp\{tQ(z)\}\). 4. The entries sum to 1.05, so check the arithmetic, matrix orientation, and whether a state or probability contribution was mishandled; an exhaustive three-state distribution must sum to 1, apart from small rounding error.

Clinical Biostats