Tutorials › Marginal Structural Models › Translating Fitted Hazards into Absolute Treatment Effects

Fitting MSMs for Survival Outcomes · Tutorial 207 of 501

Translating Fitted Hazards into Absolute Treatment Effects

Translate fitted hazards into survival probabilities and clinically interpretable absolute treatment effects over a stated follow-up horizon.

Advanced 12 min read

What You'll Learn

  • Convert discrete hazards and Cox hazards into regime-specific survival curves
  • Calculate survival differences and event-risk differences with clear sign conventions
  • Derive restricted mean survival time contrasts over a fixed horizon
  • Work through discrete and continuous-time numerical examples
  • Recognize assumptions, model checks, and common translation errors

From a Hazard Model to an Absolute Effect

A fitted hazard model does not directly report how many people survive under each treatment strategy, or how much survival time a strategy adds over a clinically relevant horizon. Those quantities require a translation step: obtain the hazard predicted by the marginal structural model (MSM) for each regime, reconstruct survival under that regime, and then compare the resulting curves. This tutorial focuses on that translation, not on fitting the weighted hazard model.

Let \(g\) index a treatment regime, let \(T^g\) be the event time that would be observed under that regime, and define \(S_g(t)=P(T^g>t)\). In applications, \(g=1\) and \(g=0\) may label two regimes of interest. The fitted MSM supplies a predicted hazard for each regime; the survival and absolute-effect measures below are functions of those predictions. Their causal interpretation requires that the regimes, treatment assignment, and outcome are well defined; consistency, sequential exchangeability, and positivity hold; and the MSM is correctly specified for the contrasts being estimated. Follow-up must also be complete through the horizon, or censoring must be handled by a valid method. A hazard fit alone does not establish these conditions.

Definition: The regime-specific survival difference at time \(t\) is \(\Delta_S(t)=S_1(t)-S_0(t)\). The regime-specific event risk is \(F_g(t)=1-S_g(t)\), so the event-risk difference is \(F_1(t)-F_0(t)=-\Delta_S(t)\). For a fixed horizon \(\tau\), the restricted mean survival time (RMST) under regime \(g\) is \(\mu_g(\tau)=\int_0^\tau S_g(t)\,dt\); its contrast is \(\Delta_{\mathrm{RMST}}(\tau)=\mu_1(\tau)-\mu_0(\tau)\).

The sign convention matters. A positive \(\Delta_S(t)\) means higher survival under regime 1, whereas a negative event-risk difference means fewer events under regime 1. A positive RMST contrast means more expected event-free time accumulated before \(\tau\) under regime 1. Always report the regimes, horizon, and contrast direction.

Reconstructing Survival from the Fitted Hazard

For a discrete-time fit, let \(q_{gk}\) be the predicted probability of the event in interval \(k\), conditional on being event-free at its start, under regime \(g\). If \(S_g(k)\) denotes survival through interval \(k\), then \(S_g(0)=1\) and each interval multiplies the previous survival by the probability of not having the event. Thus,

$$ S_g(k)=\prod_{j=1}^{k}(1-q_{gj}). $$

For continuous time, let \(h_g(t)\) be the predicted hazard and \(\Lambda_g(t)=\int_0^t h_g(u)\,du\) its cumulative hazard. The survival function is

$$ S_g(t)=\exp\{-\Lambda_g(t)\} =\exp\left\{-\int_0^t h_g(u)\,du\right\}. $$

These are two versions of the same survival reconstruction principle, as established in survival analysis. In a Cox MSM with regime-specific linear predictor \(\eta_g\), \(h_g(t)=h_0(t)\exp(\eta_g)\), so \(\Lambda_g(t)=\exp(\eta_g)\Lambda_0(t)\) and \(S_g(t)=\exp\{-\exp(\eta_g)\Lambda_0(t)\}\). The fitted baseline cumulative hazard and the regime-specific predictor must both be used; a hazard ratio alone is not enough to determine an absolute survival probability.

Result: If \(q_{gk}\) are valid conditional event probabilities in \([0,1]\), the discrete product gives non-increasing survival in \([0,1]\). If \(h_g(t)\) is nonnegative and integrable on every interval \([0,\tau]\), the continuous-time exponential formula also gives survival in \([0,1]\) that is non-increasing.

Justification. In discrete time, \(0\leq 1-q_{gk}\leq 1\); multiplying factors in this range cannot increase a nonnegative product or make it exceed 1. In continuous time, nonnegative integrable \(h_g\) implies \(\Lambda_g(t)\geq0\), and \(\Lambda_g(t)\) is non-decreasing. Therefore \(0<\exp\{-\Lambda_g(t)\}\leq1\) and this exponential is non-increasing in \(t\). These properties provide basic checks on reconstructed curves. \(\square\)

Worked Example: Pooled-Logistic Hazards and a Survival Difference

Suppose a pooled-logistic MSM predicts four unit-length interval hazards. For regime 0 they are \(0.05,0.08,0.10,0.12\); for regime 1 they are \(0.04,0.06,0.08,0.10\). Calculate survival after each interval and the event-risk difference after interval 4.

For regime 0, the successive survival probabilities are \(1(0.95)=0.95\), \(0.95(0.92)=0.874\), \(0.874(0.90)=0.7866\), and \(0.7866(0.88)=0.692208\). For regime 1, they are \(1(0.96)=0.96\), \(0.96(0.94)=0.9024\), \(0.9024(0.92)=0.830208\), and \(0.830208(0.90)=0.7471872\).

The survival difference at the horizon is \(0.7471872-0.692208=0.0549792\), about 5.50 percentage points in favor of regime 1. The corresponding event risks are \(1-0.7471872=0.2528128\) and \(1-0.692208=0.307792\). Thus the event-risk difference, regime 1 minus regime 0, is \(0.2528128-0.307792=-0.0549792\). The opposite signs are not a contradiction: more survival means less event risk.

RMST and Why the Horizon Matters

RMST converts an entire survival curve up to \(\tau\) into expected time alive and event-free during that period. Its formula follows by writing \(\min(T^g,\tau)=\int_0^\tau I(T^g>t)\,dt\). Since the integrand is nonnegative and bounded by 1, Tonelli's theorem allows expectation and integration to be interchanged:

$$ \begin{aligned} \mu_g(\tau) &=E[\min(T^g,\tau)]\\ &=E\left[\int_0^\tau I(T^g>t)\,dt\right]\\ &=\int_0^\tau E[I(T^g>t)]\,dt =\int_0^\tau S_g(t)\,dt. \end{aligned} $$

This identity holds for nonnegative event times and finite \(\tau\); no assumption that the mean event time is finite is needed. For a discrete-time outcome with unit intervals, the corresponding restricted mean through \(K\) intervals is \(\sum_{k=0}^{K-1}S_g(k)\), where \(S_g(k)\) is survival at the start of interval \(k+1\). With unequal intervals of lengths \(d_k\), the grouped-time analogue \(\sum_k d_k S_g(t_{k-1})\) treats survival as constant within each interval. It is therefore an approximation or a convention for grouped event times, not an exact continuous-time RMST unless that within-interval survival behavior is justified.

Worked Example: RMST from Discrete Hazards

Use the four hazards from the previous example and take each interval to be one year. Under the discrete-time convention, the four-year restricted mean is the sum of survival at the starts of the four intervals. Regime 0 has start-of-interval survival values \(1,0.95,0.874,0.7866\), so \(\mu_0(4)=1+0.95+0.874+0.7866=3.6106\) years. Regime 1 has values \(1,0.96,0.9024,0.830208\), so \(\mu_1(4)=1+0.96+0.9024+0.830208=3.692608\) years.

The RMST contrast is \(3.692608-3.6106=0.082008\) years, or about \(0.0820(365.25)=29.95\) days. This is the difference in expected time event-free over the specified four-year period under the stated grouped-time convention. It is not a claim that the event time for every individual is delayed by that amount.

Worked Example: A Cox MSM with Piecewise-Constant Hazards

Suppose the fitted control-regime hazard is constant within each one-year segment of a three-year horizon, with rates \(0.10,0.20,0.15\) per year. A Cox MSM estimates a regime-1 hazard ratio of \(0.70\), so its rates on those segments are \(0.07,0.14,0.105\). Compute survival at three years and the three-year RMST contrast.

The control cumulative hazard at year 3 is \(0.10+0.20+0.15=0.45\); hence \(S_0(3)=e^{-0.45}\approx0.63763\). The regime-1 cumulative hazard is \(0.07+0.14+0.105=0.315\); hence \(S_1(3)=e^{-0.315}\approx0.72979\). The survival difference is approximately \(0.09216\), or 9.22 percentage points.

For a constant rate \(\lambda\) over a segment of length 1 beginning with survival \(s\), the segment contributes \(s\int_0^1e^{-\lambda u}\,du=s(1-e^{-\lambda})/\lambda\) to RMST. For regime 0, the three contributions are \((1-e^{-0.10})/0.10\approx0.95163\), \(e^{-0.10}(1-e^{-0.20})/0.20\approx0.82010\), and \(e^{-0.30}(1-e^{-0.15})/0.15\approx0.68793\). Their sum is \(\mu_0(3)\approx2.45966\) years.

For regime 1, the contributions are \((1-e^{-0.07})/0.07\approx0.96580\), \(e^{-0.07}(1-e^{-0.14})/0.14\approx0.87007\), and \(e^{-0.21}(1-e^{-0.105})/0.105\approx0.76949\). Their sum is \(\mu_1(3)\approx2.60536\) years. Therefore \(\Delta_{\mathrm{RMST}}(3)\approx2.60536-2.45966=0.14570\) years, about \(0.14570(365.25)=53.22\) days. The hazard ratio of 0.70 is a relative hazard summary; it is not a 30-percentage-point survival benefit.

Worked Example: Unequal Pooled-Logistic Intervals

Suppose two intervals have lengths \(0.5\) and \(1\) years, followed by a final interval of \(1.5\) years. The predicted interval event probabilities are \(0.10,0.20,0.10\) under regime 0 and \(0.08,0.14,0.08\) under regime 1. Calculate end-of-follow-up survival and the grouped-time RMST contrast, using the left-endpoint survival convention.

Regime-0 survival at the interval starts is \(1,0.90,0.90(0.80)=0.72\), and end survival is \(0.72(0.90)=0.648\). Its grouped-time RMST is \(0.5(1)+1(0.90)+1.5(0.72)=2.48\) years. Regime-1 survival at the starts is \(1,0.92,0.92(0.86)=0.7912\), and end survival is \(0.7912(0.92)=0.727904\). Its grouped-time RMST is \(0.5(1)+1(0.92)+1.5(0.7912)=2.6068\) years. Thus the end survival difference is \(0.727904-0.648=0.079904\), and the grouped-time RMST difference is \(2.6068-2.48=0.1268\) years. As the interval convention makes clear, these numbers do not specify the exact within-interval continuous-time survival curve.

Interpretation, Diagnostics, and Limitations

Absolute effects answer questions that a hazard ratio does not: what is the survival probability at a specified time, how large is the event-risk difference, or how much event-free time is gained before a specified horizon? These effects depend on the underlying survival level and generally vary with time. Even under proportional hazards, a constant hazard ratio can correspond to a small absolute difference when events are rare and a larger difference when baseline risk is higher. RMST adds a horizon-specific summary, but changing \(\tau\) changes the estimand.

Useful checks follow directly from the reconstruction. Predicted discrete hazards must lie in \([0,1]\); a continuous hazard should be nonnegative; survival must begin at 1 and never increase. Check that the baseline cumulative hazard and regime-specific predictors correspond to the desired treatment regimes and time scale. Compare the estimated curves with observed follow-up support: where few weighted individuals remain at risk, the tail may be unstable even if the fitted curve looks smooth. Large or highly variable weights, sparse events, and extrapolation beyond supported follow-up can make absolute contrasts unreliable.

A common mistake is to multiply a Cox hazard ratio by a baseline event risk, or to interpret \(1-\mathrm{HR}\) as a risk reduction. Neither operation gives a regime-specific survival probability. The correction is to obtain each regime's predicted hazard (including the baseline hazard), integrate or accumulate it to form survival, and then take the desired contrast. Another error is reporting an event-risk difference with the survival-difference sign; writing both definitions explicitly prevents this.

The main alternatives answer related but distinct questions. A hazard ratio summarizes relative instantaneous event rates under the model. A fixed-time risk difference compares event probabilities at one time. A survival difference gives the same contrast with reversed sign, while an RMST contrast averages survival over a chosen horizon and has a time-unit interpretation. Direct weighted Kaplan–Meier estimates can describe survival without the same parametric hazard specification, but may not encode the desired regime contrast in the same way. Whichever approach is used, uncertainty should reflect the full estimation procedure: resampling or an appropriate variance calculation should propagate uncertainty into the survival or RMST contrast, rather than reporting only uncertainty for the hazard coefficient.

These translations do not repair a misspecified MSM or unsupported treatment regimes. They also do not make a hazard contrast collapsible into a risk contrast. The absolute effects inherit the assumptions and limitations of the fitted hazards, and their interpretation is restricted to the population and follow-up horizon those hazards represent.

Check Your Understanding

Answer each question, then compare with the brief solutions.

  1. If survival under regime 1 is \(0.80\) and under regime 0 is \(0.70\) at time \(t\), what are the survival and event-risk differences, both defined as regime 1 minus regime 0?
  2. For discrete hazards \(0.10\) and \(0.20\) in two successive intervals, what is survival after the second interval?
  3. Why can a Cox hazard ratio by itself not determine a survival probability at a fixed time?
  4. In one sentence, explain what a positive RMST contrast means.

Solutions. 1. The survival difference is \(0.80-0.70=0.10\); the event-risk difference is \((1-0.80)-(1-0.70)=0.20-0.30=-0.10\). 2. Survival is \((1-0.10)(1-0.20)=0.90(0.80)=0.72\). 3. The hazard ratio gives a relative hazard, while absolute survival also requires the baseline cumulative hazard and the regime-specific predictor. 4. A positive contrast means that regime 1 yields more expected event-free time than regime 0 before the specified horizon.

Clinical Biostats