Tutorials › Joint Modeling of Longitudinal and Time-to-Event Data › Evaluating Cumulative Incidence Predictions

Calibration and Prediction Validation · Tutorial 586 of 697

Evaluating Cumulative Incidence Predictions

You will learn to compare predicted cause-specific risks with observed cumulative incidence and to estimate prediction error without treating competing events as ordinary censoring.

Advanced 13 min read

What You'll Learn

  • Define a cause-specific cumulative incidence prediction at a landmark and horizon.
  • Construct calibration summaries using the Aalen–Johansen estimator.
  • Calculate an inverse-probability-of-censoring-weighted Brier score.
  • Explain the assumptions and positivity conditions required for these estimates.
  • Distinguish competing events from loss to follow-up when evaluating predictions.
  • Interpret diagnostics and limitations of calibration and prediction-error summaries.

Why Cumulative Incidence Predictions Need Special Evaluation

A predicted risk for one event type is not the same as a predicted risk in a setting where that event is the only possible failure. If a competing event occurs first, the event of interest can no longer happen. For example, when evaluating a prediction of relapse, death before relapse is a competing event. Treating such deaths as if they were ordinary censoring can overstate the observed probability of relapse.

Evaluation begins by specifying the population, prediction time, cause, and horizon. For a dynamic prediction, consider people who are alive and event-free at a landmark time \(t_0\), with recorded history \(H_i(t_0)\). Let \(T_i\) be the time from that landmark to the first event, and let \(J_i\) identify its cause. For a cause \(k\) and a future horizon \(\tau\), the prediction is the conditional probability of cause \(k\) occurring by \(\tau\), before any competing event. All predictions being evaluated must refer to the same target, landmark, and horizon.

Definition: The cause-specific cumulative incidence prediction for person \(i\), cause \(k\), and horizon \(\tau\) is \(p_{ik}(\tau)=P(T_i\leq \tau,\ J_i=k\mid H_i(t_0),\ T_i>0)\). It is the probability of experiencing cause \(k\) by \(\tau\) before any competing event, conditional on the information available at the landmark and being event-free then. A competing event before \(\tau\) means the cause-\(k\) outcome by \(\tau\) is zero, not unknown.

Calibration Against Observed Cumulative Incidence

Calibration asks whether predicted risks agree with observed event probabilities. A calibration plot places predicted risk on the horizontal axis and an estimate of observed cause-specific cumulative incidence on the vertical axis. Agreement is indicated by proximity to the 45-degree line. The observed quantity must account for competing events and censoring; a raw fraction of observed cause-\(k\) events is generally not an adequate estimate when follow-up is incomplete.

A simple summary divides people into risk groups and compares the mean prediction in each group with the group’s estimated cumulative incidence. For a group with event times \(u_1,\ldots,u_m\), the Aalen–Johansen estimate for cause \(k\) is

$$ \widehat F_k(\tau)=\sum_{u_j\leq \tau}\widehat S(u_j-)\frac{d_{kj}}{Y(u_j)} $$

Here \(Y(u_j)\) is the number still at risk immediately before \(u_j\), \(d_{kj}\) is the number of cause-\(k\) events at that time, and \(\widehat S(u_j-)\) estimates the probability of remaining free of every event just before that time. In this calculation, competing events reduce the event-free survival for later times, but they are not counted as cause-\(k\) events. Right censoring removes a person from the risk set after censoring.

The group estimate is then compared with the group’s average predicted risk, not with an individual outcome for each person. Grouping can reveal systematic overprediction or underprediction, but the result depends on group boundaries and may conceal departures within a group. Smooth calibration curves can show more detail, but require enough data and careful smoothing. Uncertainty should be shown where feasible, since a noisy curve is not evidence of precise calibration.

Worked Example: A Competing Event Changes the Observed Risk

Suppose a hypothetical risk group contains 10 people at a landmark. Every person is followed through horizon \(\tau\), with no loss to follow-up. Four experience a competing event at time \(u_1\). Of the six people still event-free, two experience cause \(k\) at a later time \(u_2\); the other four remain event-free through \(\tau\). The group’s mean predicted cause-\(k\) risk is 0.20.

At \(u_1\), the Aalen–Johansen contribution for cause \(k\) is zero because no cause-\(k\) event occurs then. Immediately before \(u_2\), the estimated event-free proportion is \(6/10=0.60\), and the cause-\(k\) event fraction among those at risk is \(2/6\). Therefore,

$$ \widehat F_k(\tau)=0.60\left(\frac{2}{6}\right)=0.20. $$

The observed cumulative incidence estimate is 0.20, or 20%, matching the group’s mean prediction of 20% in this hypothetical example. If one instead censored the four competing events and used one minus the Kaplan–Meier estimate for cause \(k\), the estimate would be \(2/6=0.333\). That calculation incorrectly acts as though people with competing events could later experience cause \(k\), and overstates the cause-\(k\) cumulative incidence here.

Prediction Error at a Fixed Horizon

Calibration is one part of prediction assessment. A horizon-specific Brier score measures squared error between predicted risk and the corresponding binary outcome. For cause \(k\), define \(Y_{ik}(\tau)=1\) if person \(i\) experiences cause \(k\) by \(\tau\), and \(Y_{ik}(\tau)=0\) otherwise. In complete data, the Brier score is the average of \(\{Y_{ik}(\tau)-p_{ik}(\tau)\}^2\). A lower score indicates smaller average squared prediction error in the evaluated sample. It reflects both calibration and the ability to distinguish people with different outcomes; it is not a pure measure of calibration.

With right censoring before \(\tau\), the outcome is unknown for some people. Inverse-probability-of-censoring weighting (IPCW) uses the probability of remaining uncensored to correct the contributions from observed outcomes. Let \(X_i=\min(T_i,C_i)\), where \(C_i\) is the censoring time, and let \(\Delta_i=1\) indicate that an event was observed. Write \(G(t\mid Z_i)=P(C_i\geq t\mid Z_i)\) for the conditional censoring survival probability given appropriate observed predictors \(Z_i\). One horizon-specific estimator is

$$ \widehat{\mathrm{BS}}_k(\tau)=\frac{1}{n}\sum_{i=1}^{n} \left[ \frac{I(X_i\leq\tau,\Delta_i=1)}{\widehat G(X_i-\mid Z_i)} \{I(J_i=k)-p_{ik}(\tau)\}^2 + \frac{I(X_i>\tau)}{\widehat G(\tau\mid Z_i)} \{0-p_{ik}(\tau)\}^2 \right]. $$

An observed event by \(\tau\), whether cause \(k\) or a competing cause, contributes an outcome that is known: one for cause \(k\), zero for a competing cause. A person event-free and uncensored past \(\tau\) also has outcome zero for cause \(k\) by that horizon. Someone censored before \(\tau\) without an event contributes neither term because the horizon outcome is unknown. The denominator remains the full sample size \(n\).

The assumptions are substantive. Conditional on \(Z_i\), censoring must be independent of the event process relevant to the outcome; the censoring model must be adequately estimated; and the probability of remaining uncensored must be positive over the times and covariate patterns being evaluated. The prediction and censoring model may use information available by the landmark, but not information that would only become available later. Very small estimated values of \(G\) create large weights and unstable scores, so the censoring distribution and weight distribution should be checked.

Why IPCW Targets the Complete-Outcome Score

The weighting argument can be seen conditionally. For an observed event at time \(t\), its contribution is available only if the person remains uncensored through \(t\). Under conditional independent censoring, the probability of that observation is \(G(t-\mid Z)\). Dividing its squared error by this probability restores its expected contribution in the complete-data target. For a person with no event by \(\tau\), the outcome is observed only if they remain uncensored through \(\tau\), so the corresponding inverse probability is \(1/G(\tau\mid Z)\).

$$ E\left[\left.\frac{I(C\geq t)}{G(t-\mid Z)}a\ \right|\ T=t,J,Z\right]=a, \qquad E\left[\left.\frac{I(C\geq\tau)}{G(\tau\mid Z)}b\ \right|\ T>\tau,Z\right]=b, $$

Here \(a\) and \(b\) are the relevant squared errors, fixed given the event outcome and prediction. The equalities follow because the conditional expectation of each censoring indicator is its corresponding censoring survival probability. Thus, with a correct censoring model and the stated independence and positivity conditions, the weighted average estimates the complete-outcome Brier score. Estimating \(G\) introduces additional sampling uncertainty, which should be reflected in uncertainty intervals when they are reported.

Worked Example: Calculating an IPCW Brier Score

Consider five hypothetical people with cause-\(k\) predictions \(0.30, 0.20, 0.10, 0.40,\) and \(0.15\). By horizon \(\tau\), person 1 has an observed cause-\(k\) event with \(\widehat G(X_1-\mid Z_1)=0.80\); person 2 has an observed competing event with \(\widehat G(X_2-\mid Z_2)=0.90\); person 3 is censored before \(\tau\) without an event; person 4 is event-free and observed past \(\tau\), with \(\widehat G(\tau\mid Z_4)=0.75\); and person 5 has an observed cause-\(k\) event with \(\widehat G(X_5-\mid Z_5)=0.80\).

Person 1’s weighted squared error is \((1-0.30)^2/0.80=0.6125\). Person 2’s competing event gives outcome zero, so the contribution is \((0-0.20)^2/0.90=0.04444\). Person 3 has an unknown outcome at \(\tau\) and contributes zero directly to this estimator. Person 4’s contribution is \((0-0.40)^2/0.75=0.2133\). Person 5’s contribution is \((1-0.15)^2/0.80=0.9031\). Dividing the sum by all five people gives

$$ \widehat{\mathrm{BS}}_k(\tau)= \frac{0.6125+0.04444+0+0.2133+0.9031}{5} =0.3547. $$

This is an estimated mean squared error on the zero-to-one outcome scale for the specified cause and horizon. It is not a percentage of people classified correctly. The zero direct contribution for person 3 does not mean their outcome was known to be zero: their information is accounted for through the censoring weights of people whose outcomes were observed.

Summarizing Error Across a Time Interval

A Brier score at one horizon answers a horizon-specific question. If predictions are evaluated at several horizons, an integrated Brier score (IBS) can summarize the scores over a prespecified interval. For an interval from 0 to \(\tau_{\max}\), the normalized form is

$$ \widehat{\mathrm{IBS}}_k= \frac{1}{\tau_{\max}}\int_0^{\tau_{\max}}\widehat{\mathrm{BS}}_k(t)\,dt. $$

In practice, the integral is approximated from a grid of times. The interval and time grid should be stated, since changing them changes the summary and the prediction targets being averaged.

Worked Example: Approximating an Integrated Brier Score

Suppose a hypothetical validation analysis estimates cause-\(k\) Brier scores of 0.00 at time 0, 0.12 at time 0.5 years, and 0.20 at time 1 year. Using the trapezoidal rule on this equally spaced grid, the area from 0 to 0.5 is \(0.5(0.00+0.12)/2=0.030\), and the area from 0.5 to 1 is \(0.5(0.12+0.20)/2=0.080\). The total area is \(0.110\) score-years, so

$$ \widehat{\mathrm{IBS}}_k=\frac{0.110}{1\ \text{year}}=0.110. $$

The normalized summary is 0.110 over the specified one-year interval. It should not be compared across analyses using different intervals without qualification, because the included horizons and their weights differ.

Assumptions, Diagnostics, and Alternatives

Before interpreting a calibration plot or prediction-error score, verify that the evaluated cohort and each prediction match the intended landmark and horizon. Check that competing events are classified separately from censoring, that the censoring model uses appropriate predictors, and that estimated censoring survival probabilities are not near zero in important parts of the data. If weights are highly variable, the estimate may be dominated by a few people. Sparse risk groups, few cause-\(k\) events, and heavy censoring also produce imprecise calibration estimates.

A practical comparison of approaches is:

ApproachWhat it summarizesMain caution
Grouped Aalen–Johansen calibrationObserved cause-specific cumulative incidence versus mean predicted risk by groupGrouping can hide within-group patterns; small groups are imprecise
Smooth calibration curveHow observed risk varies continuously with predicted riskDepends on smoothing choices and adequate data support
IPCW Brier scoreAverage squared prediction error at a specified horizonRequires a suitable censoring model and positivity; it combines calibration and discrimination
Integrated Brier scoreAverage prediction error over a specified time intervalDepends on the interval and grid; can obscure horizon-specific errors

These summaries answer different questions. A calibration plot is directly about agreement between predicted and observed probabilities; the Brier score is an overall error measure. Neither by itself establishes that predictions are useful for a particular decision. Detailed discrimination measures and decision-based evaluation address different aspects of performance and should not be substituted for calibration or prediction error.

Common pitfall: “People with a competing event did not have the cause-\(k\) event, so I can treat them as censored when estimating cause-\(k\) risk.” This is incorrect for cumulative incidence: after a competing event, cause \(k\) cannot occur. Count the competing event as a known zero for the cause-\(k\) outcome by the horizon, and use a competing-risks estimator such as Aalen–Johansen for observed incidence. Censoring is different because it leaves the horizon outcome unknown.

Check Your Understanding

Try each question, then compare your reasoning with the solutions below.

  1. At a fixed horizon, a person experiences a competing event before cause \(k\). Is the person’s cause-\(k\) outcome zero or unknown?
  2. In an Aalen–Johansen estimate, what role does a competing event play in a later cause-\(k\) contribution?
  3. Why does a person censored before the horizon not contribute an ordinary squared error to the IPCW Brier score?
  4. What does a Brier score measure, and why is it not a pure calibration measure?
  5. Name two conditions required for interpreting an IPCW Brier score as estimating the complete-outcome score.

Solutions. (1) It is zero: the competing event prevents cause \(k\) from occurring afterward. (2) It reduces the event-free risk set and therefore affects the probability remaining event-free, but it is not counted as a cause-\(k\) event. (3) The person’s event status at the horizon is unknown; censoring weights instead use observed outcomes to estimate the complete-outcome score. (4) It is average squared error between predicted risk and the binary cause-specific outcome; it reflects calibration and discrimination. (5) Examples include conditional independence of censoring and the event process given the censoring-model covariates, a correctly specified or consistently estimated censoring distribution, and positive probability of remaining uncensored over the evaluated times and covariate patterns.

Clinical Biostats