Tutorials › Joint Modeling of Longitudinal and Time-to-Event Data › Deriving Conditional Survival From a Joint Model

Dynamic Prediction · Tutorial 503 of 697

Deriving Conditional Survival From a Joint Model

Learn how a joint model turns longitudinal history and event-free survival into a conditional survival probability at a landmark.

Advanced 12 min read

What You'll Learn

  • Define the landmark time and future prediction horizon in a conditional survival estimand.
  • Derive the ratio of joint-model contributions for survival beyond the landmark.
  • Distinguish a survival contribution conditional on shared random effects from one based on observed history.
  • Calculate conditional survival under constant and piecewise-constant hazards.
  • Identify assumptions, common ratio errors, and diagnostics for implausible predictions.

From a Joint Model to a Landmark Prediction

A dynamic prediction asks about a person who has remained event-free up to a specified time and whose longitudinal measurements have been observed up to that time. The prediction concerns a later time. Keeping those two times distinct is essential: survival from the start of follow-up to a future time is not the same quantity as survival from a landmark to that future time.

Let \(T_i\) be the event time for person \(i\), let \(s\) be the landmark time, and let \(w>0\) be the prediction horizon. The target is the probability of remaining event-free for a further \(w\) time units, conditional on being event-free at \(s\) and on the longitudinal history available at \(s\). Write that history as \(\mathcal{H}_i(s)\), and let \(x_i\) denote baseline covariates.

Definition: The conditional survival probability at landmark \(s\) and horizon \(w\) is $$ \pi_i(s,w)=P\{T_i>s+w\mid T_i>s,\mathcal{H}_i(s),x_i\}. $$ The future endpoint is \(s+w\). The horizon \(w\) is the amount of time after the landmark, whereas \(s\) is the time at which the prediction is made.

The prediction is conditional on survival to \(s\), not merely on having a measurement at \(s\). If the reported horizon is three years for a person at a two-year landmark, the target endpoint is year five. It is not survival through year three from baseline.

Joint-Model Contributions and the Ratio

Let \(b_i\) denote the person-specific shared random effects in the joint model. Conditional on \(b_i\) and \(x_i\), suppose the event process has hazard \(\lambda_i(t\mid b_i,x_i)\). Its conditional survival function is

$$ S_i(t\mid b_i,x_i) = \exp\left\{-\int_0^t \lambda_i(u\mid b_i,x_i)\,du\right\}. $$

Let \(L_i\{\mathcal{H}_i(s)\mid b_i,x_i\}\) be the longitudinal-data likelihood contribution for the observed measurements through \(s\), conditional on the shared effects and covariates. Under the joint-model factorization, the contribution for the history together with being event-free through time \(t\), for \(t\ge s\), is

$$ D_i(t;\mathcal{H}_i(s),x_i) = \int L_i\{\mathcal{H}_i(s)\mid b_i,x_i\} S_i(t\mid b_i,x_i) p(b_i\mid x_i)\,db_i. $$

This expression is a joint-model contribution: it combines the observed longitudinal history, survival through \(t\), and the model distribution of the shared effects. For a fixed \(b_i\), the longitudinal likelihood is the same in the contributions at \(s\) and \(s+w\). The difference between those contributions is the required additional survival.

Result: Under the joint-model factorization and the stated conditioning, $$ \pi_i(s,w) = \frac{D_i(s+w;\mathcal{H}_i(s),x_i)} {D_i(s;\mathcal{H}_i(s),x_i)}. $$ The numerator requires being event-free through the future endpoint \(s+w\); the denominator requires being event-free through the landmark \(s\).

The ratio follows directly from conditional probability. The event \(T_i>s+w\) implies \(T_i>s\), so

$$ P\{T_i>s+w\mid T_i>s,\mathcal{H}_i(s),x_i\} = \frac{P\{T_i>s+w,\mathcal{H}_i(s)\mid x_i\}} {P\{T_i>s,\mathcal{H}_i(s)\mid x_i\}}. $$

The numerator and denominator are precisely the joint-model contributions \(D_i(s+w;\mathcal{H}_i(s),x_i)\) and \(D_i(s;\mathcal{H}_i(s),x_i)\). This derivation also explains why the denominator must use survival through \(s\): the prediction is conditional on having reached the landmark without the event.

For a given value of the shared effects, conditioning has a simpler form:

$$ P\{T_i>s+w\mid T_i>s,b_i,x_i\} = \frac{S_i(s+w\mid b_i,x_i)}{S_i(s\mid b_i,x_i)} = \exp\left\{-\int_s^{s+w}\lambda_i(u\mid b_i,x_i)\,du\right\}. $$

This identity is useful for understanding the time interval involved. But a prediction conditional on observed history alone is generally not obtained by simply taking this ratio at one fixed \(b_i\). In the joint contribution ratio, the history likelihood and survival terms occur together inside each contribution. The ratio is the precise target; how the shared effects are integrated or updated is a separate computational and inferential issue.

Worked Ratios Under Specified Hazards

Worked Example: Constant Hazard After the Landmark

Suppose, hypothetically, that for a specified shared-effect value the event hazard is constant at \(0.12\) per year. A patient is event-free at the landmark \(s=2\) years, and the requested horizon is \(w=3\) years. The target endpoint is \(s+w=5\) years.

For a constant hazard, the conditional survival from \(s\) to \(s+w\) is the ratio of survival contributions:

$$ \frac{S_i(5\mid b_i,x_i)}{S_i(2\mid b_i,x_i)} = \frac{\exp(-0.12\times5)}{\exp(-0.12\times2)} = \exp\{-0.12(5-2)\} = \exp(-0.36) \approx 0.6977. $$

Thus, conditional on this hazard profile and being event-free at year 2, the probability of remaining event-free through year 5 is about \(0.698\), or \(69.8\%\). The unconditional survival from baseline to year 5 would instead be \(\exp(-0.60)\approx0.5488\); it answers a different question because it does not condition on survival to year 2.

Worked Example: Piecewise-Constant Hazard Across the Prediction Window

Consider a hypothetical model with hazard \(0.04\) per year from time 0 to year 2, \(0.10\) per year from year 2 to year 4, and \(0.16\) per year after year 4. At the landmark \(s=2\), calculate survival over a horizon \(w=3\), ending at year 5.

The cumulative hazard from the landmark to the endpoint is the sum over the portions of the interval in each hazard segment. From year 2 to year 4 there are two years at \(0.10\); from year 4 to year 5 there is one year at \(0.16\). Therefore,

$$ \frac{S_i(5\mid b_i,x_i)}{S_i(2\mid b_i,x_i)} = \exp\{-[0.10(4-2)+0.16(5-4)]\} = \exp(-0.36) \approx 0.6977. $$

The conditional probability of remaining event-free for the next three years is approximately \(0.698\). The hazard before year 2 does not appear in the final interval’s cumulative hazard; it appears in both \(S_i(5)\) and \(S_i(2)\) and cancels in their ratio.

Worked Example: The Longitudinal Factor in Joint Contributions

Suppose, hypothetically, that a particular shared-effect profile gives a probability of \(0.30\) for the observed biomarker history through landmark \(s=1\) year. Under this profile, the event-survival contributions are \(S_i(1)=0.72\) and \(S_i(3)=0.45\). Find the conditional survival probability for a two-year horizon.

The joint contribution for the history and survival through the landmark is \(D_i(1)=0.30\times0.72=0.216\). The corresponding contribution for the same history and survival through year 3 is \(D_i(3)=0.30\times0.45=0.135\). Hence,

$$ \frac{D_i(3)}{D_i(1)} = \frac{0.135}{0.216} = \frac{0.30(0.45)}{0.30(0.72)} = \frac{0.45}{0.72} = 0.625. $$

Conditional on this specified profile, the probability of remaining event-free from year 1 through year 3 is \(0.625\). The history factor cancels here because the calculation fixes the shared effects. With observed history but unknown shared effects, the joint contributions also account for the model’s distribution of those effects; the cancellation cannot in general be performed outside the integrals.

Assumptions, Interpretation, and Checks

The ratio is meaningful when the joint model represents the relevant data-generating structure. In particular, the longitudinal likelihood and event survival must be correctly specified conditional on the shared effects and covariates, and the shared-effects distribution must be appropriate. The measurement and censoring processes must either be ignorable for the stated likelihood or be represented in the model. The conditioning history must contain measurements available by \(s\), not measurements collected after \(s\).

A fitted model often uses estimated parameters in these expressions. A plug-in prediction evaluates the ratio at those estimates; it does not by itself account for parameter-estimation uncertainty. Also, \(D_i(t;\mathcal{H}_i(s),x_i)\) is a likelihood contribution, not generally a probability that can be interpreted on its own. It is the ratio that gives the conditional survival probability.

Several checks can expose mistakes:

  • For \(w=0\), the ratio should be \(1\), since \(D_i(s)/D_i(s)=1\).
  • For \(w>0\), the prediction must lie between 0 and 1. A value above 1 usually signals a reversed ratio or inconsistent contributions.
  • For fixed \(s\), increasing \(w\) must not increase survival: \(D_i(s+w)\) cannot represent a less restrictive event-free requirement than \(D_i(s+w')\) when \(w>w'\), under a valid model.
  • The endpoint must be \(s+w\), and the survival condition in the denominator must be through \(s\). Substituting \(w\) directly for the endpoint answers a baseline-time question instead.

A common mistake is to report \(S_i(s+w)\) as the conditional prediction. That is survival from baseline to the endpoint, not survival beyond \(s\) among people known to be event-free at \(s\). The correction is to divide the joint contribution for survival through \(s+w\) by the corresponding contribution for survival through \(s\). Another mistake is to divide two marginal survival probabilities while ignoring the observed biomarker history. That may define a population-level conditional survival quantity, but it is not generally the history-specific prediction from a joint model.

The conditional ratio for a fixed shared-effect value offers a direct alternative description: it is survival over only the interval \((s,s+w]\). The joint-contribution ratio is the relevant formulation when the prediction conditions on observed longitudinal history and the shared effects are latent. A landmark analysis based on a separate event model is another possible approach, but it does not automatically use the joint longitudinal and event structure. The joint-model prediction depends on its assumptions, and model misspecification, sparse measurements, or extrapolation to long horizons can make it unreliable.

Key takeaway: A landmark prediction is survival through \(s+w\) divided by the joint-model contribution for survival through \(s\), with the same observed history and covariates in numerator and denominator. The landmark sets the conditioning time; the horizon specifies how far beyond it the prediction extends.

Check Your Understanding

Use the ratio definition and show the endpoint and arithmetic in each calculation.

  1. A landmark is at \(s=4\) months and the horizon is \(w=8\) months. What endpoint does the prediction concern?
  2. With a constant hazard of \(0.20\) per year, what is the conditional survival probability over a one-year horizon?
  3. Suppose \(D(s)=0.36\) and \(D(s+w)=0.27\). Calculate and interpret the conditional survival probability.
  4. Why is \(S(s+w)\) alone generally not the conditional survival probability at landmark \(s\)?

Solutions. (1) The endpoint is \(s+w=4+8=12\) months; the prediction concerns survival from month 4 through month 12. (2) For \(w=1\) year, the probability is \(\exp(-0.20\times1)=\exp(-0.20)\approx0.8187\), or about \(81.9\%\) over the next year, conditional on being event-free at the landmark. (3) The ratio is \(0.27/0.36=0.75\); the model assigns a \(75\%\) conditional probability of remaining event-free through \(s+w\), given the stated landmark contribution. (4) \(S(s+w)\) includes survival from baseline to the endpoint but does not condition on being event-free at \(s\); the conditional quantity requires the numerator-to-denominator ratio.

Clinical Biostats