What a Survival Contrast Measures
A fitted survival curve describes the probability of remaining event-free through a given time under a treatment regime. A contrast between two such curves answers a different question from either curve alone: at a chosen follow-up time, how much does estimated event-free survival differ between the regimes? The answer depends on the time and on the order in which the regimes are subtracted or divided. State both whenever reporting a contrast.
Let \(g\) and \(h\) denote two treatment regimes, and let \(S_g(t)\) and \(S_h(t)\) be their survival probabilities through time \(t\) in the target population. In a fitted weighted Cox marginal structural model, write the regime-specific hazard as \(\lambda^g(t)=\lambda_0(t)\exp\{\eta(g;\beta)\}\), where \(\lambda_0(t)\) is the common baseline hazard and \(\eta(g;\beta)\) is the model’s linear predictor for regime \(g\). Define \(q_g=\exp\{\eta(g;\beta)\}\). The fitted cumulative hazard and survival curve are
Here \(\widehat{\Lambda}_0(t)\) is the weighted Breslow estimate of the baseline cumulative hazard. The curves are plug-in predictions from the fitted model; this tutorial concerns contrasts between their point estimates at specified times.
A difference is an absolute contrast, often reported in percentage points. A ratio is a relative contrast between survival probabilities. Neither should be reported without the follow-up time and regime order. In particular, a positive survival difference corresponds to a negative difference in cumulative event risk: since \(F_g(t)=1-S_g(t)\), \(F_g(t)-F_h(t)=-\Delta_{g,h}(t)\).
Deriving the Contrasts from a Weighted Cox Fit
The calculations follow directly from the fitted model. For clarity, let \(\widehat{\Lambda}_0(t)\) be abbreviated as \(\widehat{\Lambda}_0\) at a fixed time, and let \(\hat q_g=\exp\{\eta(g;\hat\beta)\}\). The fitted regime-specific survivals are \(\exp(-\widehat{\Lambda}_0\hat q_g)\) and \(\exp(-\widehat{\Lambda}_0\hat q_h)\). Therefore the fitted pointwise contrasts are
Derivation. By the definition of the ratio and the fitted survival formula,
This identity shows why a constant hazard multiplier ratio does not imply a constant survival ratio. The latter also depends on how much cumulative baseline hazard has accrued by time \(t\). At \(t=0\), when the cumulative hazard is zero, both fitted survival curves equal one and both contrasts equal one for the ratio and zero for the difference. \(\square\)
The direction of the survival contrast is also determined by the fitted multipliers. This gives a useful check on calculations.
Proof. The exponential function is strictly increasing, so \(x\mapsto\exp(-x)\) is strictly decreasing. Since \(\widehat{\Lambda}_0(t)\geq0\) and \(\hat q_g<\hat q_h\), multiplication gives \(\widehat{\Lambda}_0(t)\hat q_g\leq\widehat{\Lambda}_0(t)\hat q_h\). Applying the decreasing function yields \(\exp\{-\widehat{\Lambda}_0(t)\hat q_g\}\geq\exp\{-\widehat{\Lambda}_0(t)\hat q_h\}\). If the cumulative hazard is positive, both inequalities are strict. Subtracting the survivals gives the stated sign of the difference. \(\square\)
Worked Pointwise Comparisons
Worked Example: A Protective Regime at Two Follow-Up Times
Suppose the fitted model has binary treatment \(A\), with \(\eta(A;\beta)=\beta A\), and \(\hat\beta=\log(0.70)\). Compare treated \(g\) (\(A=1\)) with untreated \(h\) (\(A=0\)). The fitted multipliers are \(\hat q_g=0.70\) and \(\hat q_h=1\). Suppose \(\widehat{\Lambda}_0(1)=0.10\) and \(\widehat{\Lambda}_0(3)=0.30\).
At time 1, the fitted survivals are \(\widehat{S}_g(1)=\exp(-0.10\times0.70)=\exp(-0.07)=0.9324\) and \(\widehat{S}_h(1)=\exp(-0.10)=0.9048\). Thus \(\widehat{\Delta}_{g,h}(1)=0.9324-0.9048=0.0276\), or about 2.76 percentage points, and \(\widehat{R}_{g,h}(1)=0.9324/0.9048=1.0305\).
At time 3, \(\widehat{S}_g(3)=\exp(-0.21)=0.8106\) and \(\widehat{S}_h(3)=\exp(-0.30)=0.7408\). The difference is \(0.8106-0.7408=0.0698\), or 6.98 percentage points, and the ratio is \(0.8106/0.7408=1.0942\). Both contrasts favor treatment, as expected from the smaller fitted multiplier. Their magnitudes differ by time, even though the model uses one constant treatment coefficient.
Worked Example: Reversing the Regime Order
Suppose \(\hat\beta=\log(1.5)\) in the same binary-treatment model, and compare treated \(g\) with untreated \(h\) at a time when \(\widehat{\Lambda}_0(t)=0.40\). Then \(\hat q_g=1.5\) and \(\hat q_h=1\).
The survivals are \(\widehat{S}_g(t)=\exp(-0.40\times1.5)=\exp(-0.60)=0.5488\) and \(\widehat{S}_h(t)=\exp(-0.40)=0.6703\). In the stated order, the difference is \(0.5488-0.6703=-0.1215\), and the ratio is \(0.5488/0.6703=0.8187\). The negative difference and ratio below one both indicate lower fitted survival under treatment.
If the comparison is instead untreated versus treated, the difference becomes \(0.6703-0.5488=0.1215\) and the ratio becomes \(0.6703/0.5488=1.2214\). Reversing the order changes the sign of a difference and takes the reciprocal of a ratio; it does not change the underlying two fitted curves.
Worked Example: From Survival Difference to Event-Risk Difference
Suppose \(\hat\beta=\log(0.60)\), with treatment \(g\) compared with control \(h\). At time 2, let \(\widehat{\Lambda}_0(2)=0.20\); at time 6, let \(\widehat{\Lambda}_0(6)=0.60\). At time 2, control survival is \(\exp(-0.20)=0.8187\), while treated survival is \(\exp(-0.12)=0.8869\). Thus the survival difference is \(0.0682\), and the ratio is \(0.8869/0.8187=1.0833\).
At time 6, control survival is \(\exp(-0.60)=0.5488\), while treated survival is \(\exp(-0.36)=0.6977\). The survival difference is \(0.1489\), and the ratio is \(0.6977/0.5488=1.2712\). The corresponding event risks are \(1-0.5488=0.4512\) under control and \(1-0.6977=0.3023\) under treatment. Their difference, treated minus control, is \(0.3023-0.4512=-0.1489\), exactly the negative of the survival difference. A report should say which outcome scale is being contrasted.
Assumptions, Diagnostics, and Alternatives
These calculations are arithmetic once fitted curves are available, but a causal interpretation requires more than arithmetic. In the usual longitudinal-treatment setting, consistency and sequential exchangeability are needed to identify regime-specific outcomes from observed data; positivity is needed so the relevant treatment choices have support. Correctly specified treatment weights (and, when used, censoring weights), an adequate marginal structural Cox model for the regimes being compared, and appropriate handling of censoring are also required. If these conditions fail, a precisely calculated contrast can still be a poor estimate of the intended causal quantity.
Check the inputs before interpreting the result. The estimated baseline cumulative hazard should be nonnegative and nondecreasing, and the fitted survival probabilities should lie between zero and one and be nonincreasing over time. For a model with a common baseline hazard, the curve ordering should agree with the ordering of the fitted multipliers; a reversed order suggests an implementation, coding, or reporting error. Also inspect whether the chosen time is within meaningful follow-up and whether weighted risk sets contain adequate information. Extreme or unstable weights, sparse late risk sets, and strong dependence on weight truncation can make contrasts unreliable even when the displayed numbers look plausible.
Pointwise contrasts are not whole-curve summaries. A difference at one time does not describe when the curves separated, and a ratio at one time does not summarize overall event experience. The main alternatives depend on the question: present both regime-specific curves to show their pattern over follow-up, or use a prespecified summary over an interval when the scientific target is an overall time-based comparison. A weighted Kaplan–Meier analysis may be useful as a less model-dependent descriptive comparison under its own identification and censoring assumptions, whereas the weighted Cox fit imposes a proportional-hazards structure on the regime-specific hazards. Neither approach repairs inadequate treatment support or invalid weights.
Do not treat ordinary confidence intervals for each curve as if the two curves were independent when forming uncertainty for their difference or ratio: both estimates come from the same fitted analysis. A point estimate can be computed as above, but valid uncertainty for the contrast must account for their joint estimation. The contrast is also sensitive to the chosen follow-up time, so that time should be scientifically motivated rather than selected after inspecting which point gives the largest separation.
Check Your Understanding
Use the fitted-model formulas above. Solutions are included so you can check both the arithmetic and the direction of each contrast.
- If \(\hat q_g=0.8\), \(\hat q_h=1\), and \(\widehat{\Lambda}_0(t)=0.5\), calculate both survivals, the difference \(g-h\), and the ratio \(g/h\).
- Why can a survival ratio change with time even when the fitted hazard multiplier ratio is constant?
- If the survival difference for \(g-h\) is \(0.04\) at time \(t\), what is the event-risk difference \(F_g(t)-F_h(t)\)?
- Name two checks that could reveal a problem with the fitted curves or with interpretation of a pointwise contrast.
Solutions. (1) \(\widehat{S}_g(t)=\exp(-0.4)=0.6703\) and \(\widehat{S}_h(t)=\exp(-0.5)=0.6065\). The difference is \(0.6703-0.6065=0.0638\), and the ratio is \(0.6703/0.6065=\exp(0.1)=1.1052\). (2) The survival ratio is \(\exp\{-\widehat{\Lambda}_0(t)(\hat q_g-\hat q_h)\}\), so it changes as cumulative baseline hazard accrues. (3) Since \(F=1-S\), the event-risk difference is \(-0.04\). (4) Examples include checking that survival estimates stay within \([0,1]\) and decrease over time, checking curve ordering against fitted multipliers, and checking that the selected time has adequate weighted risk-set support.