Tutorials › Joint Modeling of Longitudinal and Time-to-Event Data › Assessing Transportability Across Populations

Calibration and Prediction Validation · Tutorial 578 of 697

Assessing Transportability Across Populations

You will learn to distinguish changes in prediction performance caused by population composition from changes in the relationship between predicted and observed outcomes.

Advanced 12 min read

What You'll Learn

  • Define the target population and prediction setting for a transportability assessment
  • Standardize prediction loss to separate case-mix effects from conditional outcome shifts
  • Use density weights to estimate target-population performance when support is adequate
  • Account for different censoring patterns at a common prediction horizon
  • Diagnose poor overlap, unstable weights, and misleading pooled comparisons

Why Transportability Requires More Than a Performance Score

A prediction model can perform differently in two populations even when its predictions have not changed. The populations may contain different proportions of people with high predicted risk, different longitudinal histories, or different distributions of baseline covariates. These differences in case mix can change an overall performance score. Alternatively, the relationship between a person's predictors and their event risk may differ in the new population. That is a change in the conditional outcome pattern, and it may indicate that predictions are no longer calibrated.

For a joint model, predictions often depend on both baseline covariates and a participant's longitudinal history up to a landmark time. Transportability assessment therefore needs to compare like with like: the same endpoint, prediction horizon, landmark eligibility rule, and prediction procedure, applied to clearly defined populations. Differences in follow-up and censoring also matter because outcomes may not be observed equally often in the two populations.

Definition: A prediction is transportable to a target population when its performance in that population is adequate for the intended use. A case-mix difference is a difference in the distribution of predictors or prediction histories across populations. A conditional outcome shift is a difference in the outcome distribution given those predictors or histories. A conditional shift may involve calibration drift, but a change in a performance score alone does not establish calibration drift.

Let \(S\) denote a source population and \(T\) a target population. At landmark time \(s\), let \(Z\) collect the information used for prediction, such as baseline covariates and the observed longitudinal history \(\mathcal H(s)\). A frozen joint model supplies a predicted survival probability \(\hat S(t\mid s,Z)\) at a later time \(t\). For a single event endpoint, the corresponding predicted event risk by \(t\) is \(1-\hat S(t\mid s,Z)\). The assessment concerns the same frozen predictions in each population; refitting or updating the model changes the question.

A Standardization Decomposition

Consider the Brier loss at a fixed horizon. Define \(Y_t=I(T_{\mathrm{event}}>t)\), so \(Y_t=1\) if the participant remains event-free through \(t\), and \(Y_t=0\) if the event occurs by \(t\). For a prediction \(f(Z)=\hat S(t\mid s,Z)\), the individual loss is \(\{Y_t-f(Z)\}^2\). Let \(P_S\) and \(P_T\) represent the source and target conditional distributions of \(Y_t\) given \(Z\), and let \(Q_S\) and \(Q_T\) be the source and target distributions of \(Z\). Define

$$ R(P,Q;f)=\int E_P\!\left[\{Y_t-f(z)\}^2\mid Z=z\right]\,dQ(z). $$

The first argument specifies the conditional outcome pattern; the second specifies the population mix over which that pattern is averaged. The following identity separates a change in mix from a change in conditional outcomes, using the source conditional outcome pattern as the reference:

$$ R(P_T,Q_T;f)-R(P_S,Q_S;f) = \underbrace{R(P_S,Q_T;f)-R(P_S,Q_S;f)}_{\text{case-mix component}} + \underbrace{R(P_T,Q_T;f)-R(P_S,Q_T;f)}_{\text{conditional-shift component}}. $$

This is an algebraic identity: adding the two right-hand terms cancels \(R(P_S,Q_T;f)\), leaving the left-hand side. The case-mix component asks how performance would change if the source conditional outcome pattern held, but the model were evaluated over the target predictor distribution. The conditional-shift component compares target and source outcome patterns while holding the target mix fixed. This reference choice is explicit; a decomposition that uses the target outcome pattern as its reference can allocate the difference differently.

The conditional-shift component is not automatically a pure measure of calibration drift. Conditional outcome variability can also change. Calibration drift specifically means that observed event risk changes relative to predicted risk—for example, the event frequency among people with a given predicted risk differs between populations. Calibration summaries should therefore accompany an overall loss comparison when the question is whether predictions are systematically too high or too low.

Assumptions for interpreting the decomposition: The endpoint, horizon, landmark rule, prediction definition, and loss must be comparable across populations. The predictors \(Z\) must be measured and defined consistently. Estimating a target-mix performance using source data requires adequate overlap: predictor patterns represented in the target must also be represented in the source. With censoring, the outcome loss must be estimated using a valid censoring adjustment, requiring conditional independent censoring and positive probability of remaining observed through the relevant times.

Worked Example: Separating Case Mix From a Conditional Shift

Suppose a hypothetical source population has two risk groups. In the high-risk group, predicted one-year event risk is \(q=0.30\), and the observed event proportion is \(p=0.30\). In the low-risk group, \(q=0.10\) and \(p=0.10\). The source population is 20% high-risk and 80% low-risk. A target population is 60% high-risk and 40% low-risk. First suppose the conditional event proportions stay the same in the target.

For a binary event indicator with event probability \(p\) and predicted event risk \(q\), expected Brier loss is

$$ E\{(Y-q)^2\}=p(1-q)^2+(1-p)q^2. $$

In the source high-risk group, the expected loss is \(0.30(0.70)^2+0.70(0.30)^2=0.147+0.063=0.210\). In the low-risk group it is \(0.10(0.90)^2+0.90(0.10)^2=0.081+0.009=0.090\). Thus the source-population score is \(0.20(0.210)+0.80(0.090)=0.114\).

Under the target mix but with the same group-specific outcome proportions, the score is \(0.60(0.210)+0.40(0.090)=0.162\). The score is higher by \(0.162-0.114=0.048\), entirely because the target contains more high-risk people. In this hypothetical calculation, the group-specific predictions and event proportions agree in both populations, so there is no conditional shift.

Now suppose the target event proportions are 0.40 in the high-risk group and 0.15 in the low-risk group, while the frozen predictions remain 0.30 and 0.10. Target high-risk expected loss is \(0.40(0.70)^2+0.60(0.30)^2=0.196+0.054=0.250\). Target low-risk expected loss is \(0.15(0.90)^2+0.85(0.10)^2=0.1215+0.0085=0.130\). The target score is \(0.60(0.250)+0.40(0.130)=0.202\). Relative to the source score, the total increase \(0.202-0.114=0.088\) consists of the 0.048 case-mix component and the \(0.202-0.162=0.040\) conditional-shift component. The positive shift is consistent with underprediction in these groups, but an overall score alone would not show that direction.

This example assumes the one-year outcome is fully observed and that the risk groups capture the relevant predictor distribution. In actual survival data, censoring must be addressed, and broad groups may conceal important differences within groups.

Estimating Target Performance by Reweighting

If individual-level source validation data are available, a target-mix performance can sometimes be estimated by weighting source participants to resemble the target on \(Z\). If the target-to-source density ratio is \(w(z)=dQ_T(z)/dQ_S(z)\), then, under overlap, the source expectation of the weighted loss equals its expectation under the target predictor distribution:

$$ E_{Q_S}\!\left[w(Z)L\right]=E_{Q_T}[L], \qquad E_{Q_S}[w(Z)]=1, $$

where \(L\) is the appropriately observed or censoring-adjusted prediction loss. The equality follows from changing the integration measure: \(\int w(z)E[L\mid z]dQ_S(z)=\int E[L\mid z]dQ_T(z)\). In practice, weights are estimated, often from a model distinguishing target from source membership. This estimates target-mix performance under the source conditional outcome pattern; it does not prove that the conditional outcome pattern is stable in the target.

Worked Example: Target Weighting and Effective Sample Size

In a hypothetical source validation sample of 100 people, 20 are high-risk and 80 are low-risk. The target proportions are 60% and 40%, respectively. To match the target mix, assign each source high-risk person weight \(0.60/0.20=3\), and each low-risk person weight \(0.40/0.80=0.5\). The average weight is \(\{20(3)+80(0.5)\}/100=1\), as required for normalized population weights.

Using the group-specific losses from the previous calculation, the weighted source estimate is \(0.20(3)(0.210)+0.80(0.5)(0.090)=0.126+0.036=0.162\). It matches the target-mix score under the assumption that source group-specific outcome patterns apply to the target.

The weights also show why the estimate may be less precise than its nominal sample size suggests. The usual weight-based effective sample size is \((\sum_i w_i)^2/\sum_i w_i^2\). Here it is \(100^2/\{20(3^2)+80(0.5^2)\}=10000/200=50\). Although there are 100 people, weight variation gives an effective sample size of 50 by this summary. If a target subgroup has no source representation, its density ratio cannot be estimated from these data and target performance is not identified by reweighting alone.

The calculation assumes consistent definitions of high and low risk, adequate representation in each target-relevant stratum, and stable conditional outcomes if the weighted source estimate is intended to predict target performance. The effective sample size is a diagnostic, not a substitute for an uncertainty interval or a check of weight distribution.

Follow-Up and Censoring Must Be Compared at Common Horizons

Different follow-up patterns can make two populations appear to have different performance even when their underlying prediction accuracy is similar. A participant censored before \(t\) does not have a known event-free status at \(t\). Simply omitting such people and averaging losses among the observed can be biased, because the observed subset may differ systematically from the full population.

For a fixed horizon \(t\), inverse-probability-of-censoring weighting (IPCW) estimates the Brier score using observed contributions weighted by the inverse probability of remaining uncensored. Write \(\tilde T_i\) for the observed event or censoring time, \(\delta_i=1\) for an observed event, and \(\hat G(u\mid W_i)\) for the estimated probability of remaining uncensored beyond \(u\), conditional on suitable variables \(W_i\). A common estimator is

$$ \widehat{BS}(t)=\frac{1}{n}\sum_{i=1}^n \left[ \frac{I(\tilde T_i\le t,\delta_i=1)}{\hat G(\tilde T_i^-\mid W_i)} \{0-\hat S_i(t)\}^2 + \frac{I(\tilde T_i>t)}{\hat G(t\mid W_i)} \{1-\hat S_i(t)\}^2 \right]. $$

A person censored before \(t\) contributes neither term because their status at \(t\) is unknown. The estimator relies on censoring being conditionally independent of the event time given \(W_i\), and on \(\hat G\) being positive wherever contributions are needed. The censoring model and its adequacy should be assessed separately in each population; more censoring does not itself mean worse prediction.

Worked Example: IPCW With Unequal Follow-Up

Consider four hypothetical people evaluated at one year. Their predicted survival probabilities are 0.80, 0.70, 0.60, and 0.40. Person 1 has an observed event before one year, person 2 is observed event-free beyond one year, person 3 is censored before one year, and person 4 has an observed event before one year. Suppose the estimated censoring survival probabilities at the event times for people 1 and 4 are both 0.80, and \(\hat G(1)=0.50\) for person 2.

Person 1 contributes \((0-0.80)^2/0.80=0.64/0.80=0.800\). Person 2 contributes \((1-0.70)^2/0.50=0.09/0.50=0.180\). Person 3 contributes zero because their one-year status is unknown. Person 4 contributes \((0-0.40)^2/0.80=0.16/0.80=0.200\). Dividing the sum of contributions by all four people gives \(\widehat{BS}(1)=(0.800+0.180+0+0.200)/4=0.295\).

This arithmetic presumes the stated censoring probabilities correctly describe censoring for the relevant people and are positive. The zero contribution for the censored person is not an assertion that their loss was zero; it reflects missing one-year status, compensated for by weighting the observed contributions under the IPCW assumptions. With different follow-up between populations, compare at horizons supported by both populations and estimate censoring weights appropriately rather than comparing unadjusted observed-case averages.

Diagnostics, Alternatives, and Limits

A reliable assessment reports target-specific performance and makes the population mix explicit. Useful checks include:

  • Overlap: compare predictor distributions and examine whether target observations fall in regions represented in the source. Extreme density ratios or target-only patterns signal extrapolation.
  • Weight stability: inspect the range and concentration of weights, the effective sample size, and how estimates change under reasonable weight truncation. Truncation can reduce variance but introduces bias and does not repair absent overlap.
  • Conditional calibration: compare observed and predicted event risk across relevant predicted-risk ranges or covariate strata. A pooled calibration summary may hide opposing errors across groups.
  • Follow-up support: inspect censoring distributions and estimated censoring survival probabilities at each chosen horizon. Very small probabilities yield unstable contributions and weakly supported estimates.
  • Definition consistency: verify that the event, time origin, prediction landmark, and measurements used in the prediction have the same meaning in both populations.

A direct external validation in the target population estimates performance under the target's actual case mix and outcome pattern, subject to its sample size and censoring. Reweighting source data can answer a case-mix standardization question when overlap and conditional stability are credible, but it cannot reveal unobserved target conditional drift. Internal-external validation across centers can show how performance varies across centers, while a source-to-target analysis focuses on a specified target population. These approaches complement each other rather than replacing target data when those data are available.

An overall score such as the Brier score or an observed-to-expected summary is useful but not sufficient to identify why performance changed. The standardization decomposition is reference-dependent, and its conditional component can reflect changes beyond calibration. Conversely, stable overall performance can conceal subgroup-specific miscalibration. Prediction transportability is also not a causal claim: it concerns the behavior of predictions in a population, not the effect of intervening on predictors.

Common mistake: “The target Brier score is worse, so the model has drifted.” This conclusion does not follow: a target population with more high-risk people can have a worse average score even when group-specific outcome patterns and calibration are unchanged. Compare scores at a common horizon, standardize to a shared predictor mix or decompose the difference, and examine conditional calibration before attributing the change to drift.

Check Your Understanding

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

  1. A source and target population have identical conditional event proportions within every predictor stratum, but the target has more people in a high-risk stratum. What kind of change can explain a different overall Brier score?
  2. In a source sample, a predictor stratum has proportion 0.25, while its target proportion is 0.50. What density ratio weight does that stratum receive under simple stratum weighting?
  3. Why should people censored before a prediction horizon not simply be coded as event-free at that horizon?
  4. A target includes a predictor pattern absent from the source. What does this imply for estimating target performance by source reweighting?

Solutions. (1) A case-mix difference can change the average loss even though conditional event proportions are unchanged; standardizing both populations to the same mix would remove this composition difference under the stated conditions. (2) The weight is \(0.50/0.25=2\), since that stratum must count twice as much relative to its source frequency to represent the target mix. (3) Censoring before the horizon leaves event status at the horizon unknown; coding the person as event-free creates outcome misclassification and can bias the score. (4) The target pattern has no source support, so its density ratio cannot be estimated from the source data. Reweighting alone cannot identify performance there; target data or additional, explicit modeling assumptions are needed.

Clinical Biostats