Why Plot Calibration at a Chosen Horizon?
A joint model can produce an individual’s predicted probability of experiencing the event within a specified period, conditional on being event-free at a prediction time and on the longitudinal history observed up to that time. A horizon-specific calibration plot asks whether those predictions agree with event probabilities observed in a validation cohort. The plot is a practical summary: it places groups of similar predicted risks on one axis and censoring-adjusted estimates of their event probabilities on the other.
The horizon matters. A prediction for the next six months is not the same target as a prediction for the next two years, even for the same patient at the same prediction time. Choose the landmark time and horizon before constructing the plot, following the earlier material on Choosing Prediction Times and Horizons. The earlier material on Calibration of Conditional Survival Predictions establishes the conditional prediction target; here the focus is the group-based plot and its censoring adjustment.
Constructing the Plot
Begin with a validation cohort whose members are eligible at the landmark: their event-free status through \(s\) is known, and their longitudinal history through \(s\) is available. Compute each patient’s predicted risk \(p_i(s,h)\) from the fitted joint model. The plot evaluates those predictions in the validation cohort; fitting the joint model and evaluating it on the same individuals can make apparent calibration look better than it is.
Divide the predicted risks into a small number of groups, often using quantiles so that group sizes are roughly balanced. For group \(g\), calculate the average predicted risk, \(\bar p_g\). The horizontal coordinate is \(\bar p_g\), not the group’s midpoint or an arbitrary label. The vertical coordinate estimates the event probability by \(s+h\) in that group, accounting for patients whose event status at the horizon is unknown because they were censored earlier.
Let \(W_i\) collect variables used to model censoring and the prediction or grouping, including relevant baseline covariates and the observed history \(\mathcal{Y}_i(s)\). If prediction-group membership is not already determined by these variables, include the group or predicted risk as well. Among landmark-eligible patients, define the conditional censoring survival \(G_s(t\mid W_i)=P(C_i\ge t\mid C_i>s,T_i>s,W_i)\), for \(t\ge s\). A patient who has an event by the horizon contributes an event outcome if that event is observed; a patient known to remain event-free through the horizon contributes a non-event outcome. Patients censored before the horizon without an event do not have a known binary outcome for this plot.
For a group \(g\), a useful inverse-probability-of-censoring-weighted (IPCW) estimate is the weighted proportion among members whose binary outcome is observed by the horizon. Let \(R_i=1\) if patient \(i\) has an observed event by \(s+h\) or is known to be event-free through \(s+h\), and let \(D_i=1\) if an event was observed by \(s+h\). Then
For an observed event, the weight uses the probability of remaining uncensored through that event time. For a patient observed event-free through the horizon, it uses the probability of remaining uncensored through \(s+h\). The estimate \(\widehat q_g\) is the vertical coordinate; \(\bar p_g\) is the horizontal coordinate. This ratio form is a Hájek-type weighted estimate. Under the assumptions above, it is consistent for the group’s event probability; in a finite sample it is not generally exactly unbiased.
Why the Weights Recover Group Risk
The justification is that inverse censoring weights correct the unequal chance that a patient’s binary outcome is observed. Conditional on \(W_i\), an event at time \(t\) is observable through \(t\) with probability \(G_s(t\mid W_i)\). Thus weighting an observed event by the reciprocal of that probability recovers its expected event contribution. The same reasoning applies to a patient event-free through the horizon.
These equalities use \(T_i\perp C_i\mid W_i\) in the landmark-eligible cohort and the definition of \(G_s\). Summing the first contributions recovers the group’s event count in expectation; summing both contributions recovers its size. Their ratio therefore estimates the event proportion. If independence fails after conditioning on \(W_i\), or if censoring survival is essentially zero for some relevant patients, the argument does not justify the plot’s vertical coordinates.
Worked Example: Calculating One Group’s Plot Point
Consider six hypothetical patients who are event-free at \(s=12\) months. The chosen horizon is \(h=6\) months, so the endpoint is event by month 18. They fall in one prediction group. Their predicted risks are 0.10, 0.15, 0.20, 0.25, 0.30, and 0.35. Patient C is censored at month 16 without an observed event. The other five have known outcomes: A, D, and F have events by month 18; B and E are known event-free through month 18. Suppose the fitted conditional censoring survivals at the relevant event times or at month 18 are 0.90 for A, 0.80 for B, 0.85 for D, 0.75 for E, and 0.95 for F.
The group’s mean predicted risk, the horizontal coordinate, is \((0.10+0.15+0.20+0.25+0.30+0.35)/6=1.35/6=0.225\). Patient C remains part of the prediction group and this average, but does not contribute a known binary endpoint to the weighted observed-risk estimate.
The observed-event weights are \(1/0.90=1.111\) for A, \(1/0.85=1.176\) for D, and \(1/0.95=1.053\) for F. Their weighted event total is \(1.111+1.176+1.053=3.340\). The event-free weights are \(1/0.80=1.250\) for B and \(1/0.75=1.333\) for E. Thus the weighted denominator is \(3.340+1.250+1.333=5.923\), and \(\widehat q_g=3.340/5.923=0.564\).
The plotted point is approximately \((0.225,0.564)\). In this hypothetical group, the censoring-adjusted observed risk exceeds the mean predicted risk. This single point does not establish why they differ, nor does it establish a population-level discrepancy; sampling variability and group composition also matter.
Reading the Plot and Checking Its Construction
Draw the 45-degree line as a reference for agreement. A point above the line has a larger estimated observed event probability than mean predicted risk in that group, indicating underprediction there; a point below the line indicates overprediction. The reference is not a fitted model, and proximity to it does not prove that predictions are accurate for every individual. Grouping compresses information: different prediction values and histories are represented by one point.
Check the plot’s construction before interpreting its shape. Verify that the prediction time and horizon are identical for every patient, that risks are calculated from information available by \(s\), and that the endpoint definition is applied consistently. Inspect group sizes and the spread of predicted risks within each group. Also inspect censoring survival estimates and the distribution of IPCW weights: very small \(G_s\) values generate large weights, so a few patients can dominate a point. The censoring model should reflect the information needed for conditional independent censoring, not merely whichever variables are easiest to include.
Worked Example: Weighted Versus Unweighted Group Risk
In a second hypothetical validation group, five patients have known endpoints by the horizon. Their predictions are 0.30, 0.35, 0.40, 0.45, and 0.50. Patients 1 and 3 experience the event by the horizon; patients 2, 4, and 5 remain event-free through it. Suppose the corresponding censoring survivals are 0.80 and 0.90 at the two event times, and 0.70, 0.80, and 0.90 at the horizon for the three event-free patients.
The unweighted event fraction is \(2/5=0.400\), while the mean predicted risk is \((0.30+0.35+0.40+0.45+0.50)/5=2.00/5=0.400\). That agreement is only descriptive: the outcome-observed patients may not represent the group equally well when their censoring probabilities differ.
The event weights are \(1/0.80=1.250\) and \(1/0.90=1.111\), giving a weighted event total of \(2.361\). The three event-free weights are \(1/0.70=1.429\), \(1/0.80=1.250\), and \(1/0.90=1.111\). The weighted denominator is \(2.361+1.429+1.250+1.111=6.151\). Therefore the IPCW estimate is \(2.361/6.151=0.384\), giving a plotted point near \((0.400,0.384)\). Here censoring adjustment changes the comparison: the weighted observed risk is slightly below the group’s mean prediction.
In practice, patients censored before the horizon without an event are omitted from the observed-endpoint sums, not assigned a non-event outcome. Their loss is addressed by weighting the endpoints that are observed. If censoring probabilities are misspecified or the conditional-independence assumption is implausible, that adjustment may still be biased.
Alternatives, Limitations, and Common Pitfalls
A raw event fraction among patients with known horizon status is simple, but it can be biased when outcome observability is related to event risk. A Kaplan–Meier estimate within each prediction group is another option under appropriate censoring assumptions; it gives a group-level survival estimate that can be converted to event risk. IPCW makes the role of measured predictors of censoring explicit and can accommodate conditional censoring models, but it depends on those models and on adequate positivity. Neither approach removes bias from unmeasured dependence between event and censoring times.
A grouped plot is also sensitive to choices about the number and boundaries of groups. Too few groups can hide meaningful differences; too many produce noisy points, especially when censoring is heavy. The x-coordinate is a group mean, so a wide range of risks within a group may conceal individual-level miscalibration. A plot is a descriptive diagnostic, not a single definitive test or a substitute for checking the prediction target and validation design.
- Wrong: “Censoring is independent of event time given baseline covariates, so IPCW is automatically valid within each predicted-risk group.”
- Correction: Independence must hold conditional on variables sufficient for the censoring adjustment in the landmark cohort, including relevant longitudinal history and prediction or grouping information. Conditioning on history or group membership can alter the relationship between event and censoring times.
- Wrong: Treating a patient censored before the horizon without an event as event-free at the horizon.
- Correction: That patient’s binary status is unknown. Exclude that outcome from the complete-endpoint sums and use valid censoring weights for observed endpoints.
- Wrong: Reading points above the diagonal as evidence that the joint model causes more events.
- Correction: Above-diagonal points indicate that estimated observed risk exceeds predicted risk in those groups; they describe calibration, not causation.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions below.
- At a 12-month landmark, what event probability does a 6-month horizon target?
- A group has mean predicted risk 0.28 and an IPCW observed-risk estimate of 0.34. What does its position relative to the diagonal indicate?
- Why can independence of event and censoring times given baseline covariates alone be insufficient for a group-based calibration plot?
- In a group, three observed events have weights 1.10, 1.25, and 1.00, and two observed event-free outcomes have weights 1.20 and 1.30. Calculate the weighted observed risk.
- What does a very small estimated censoring survival imply for the IPCW plot?
Solutions. (1) It targets \(P(T_i\le18\text{ months}\mid T_i>12\text{ months},\mathcal{Y}_i(12))\). (2) The point is above the diagonal: estimated observed risk exceeds mean predicted risk, indicating underprediction in that group. (3) The plot conditions on prediction-related history or group membership; censoring and event time may be dependent after that conditioning unless the censoring model and assumptions account for it. (4) The weighted event total is \(1.10+1.25+1.00=3.35\); the denominator is \(3.35+1.20+1.30=5.85\). Thus the estimate is \(3.35/5.85=0.573\). (5) Its reciprocal creates a large weight, making the estimate unstable and potentially dominated by a few observations; it also signals a possible positivity problem.