Restricted Mean Survival Time: How Much Event-Free Time Did Treatment Buy?

On this page
อ่านฉบับภาษาไทย (Thai version)
Abstract
When survival curves separate early, then draw closer again, one hazard ratio (a ratio of event rates) averages a strong early benefit with no benefit later. It cannot say how much time treatment buys. The restricted mean survival time, RMST(tau), is the area under the survival curve up to a chosen horizon tau: the mean event-free time within that window. Without censoring it is the mean of event-free times capped at tau. With censoring it is estimated, under independent censoring, by the area under the Kaplan-Meier step curve, summed as rectangles, which gives 18.375 months for ten hand-worked patients followed to 24 months. In a simulated heart-failure trial whose death hazard ratio changes at 12 months, the single hazard ratio is 0.84, while the RMST difference at 24 months is 1.86 months (95% CI 1.04 to 2.67) against a true 1.74. This article concludes that RMST, with a pre-specified horizon, complements the hazard ratio and the curves with a difference in months.
A two-year question in a heart-failure clinic
A cardiologist is going through the results of a randomised trial of a new heart-failure drug with a patient who was discharged last week. The drug and the trial are fictional, and their numbers are simulated data. The two survival curves separate in the first year and then draw closer again without crossing: the drug helps early and gives no further benefit after that. The report gives one hazard ratio for death, 0.84 (95% CI 0.74 to 0.96).
The patient asks a plain question: over the next two years, how much longer will I live if I take it? A hazard ratio cannot answer in months. It compares event rates, and here it averages a strong early benefit with no benefit later.
The restricted mean survival time (RMST) can answer it as an average over patients like those in the trial. Within 24 months of randomisation, patients assigned to the drug lived on average 1.86 months longer than patients assigned to control (95% CI 1.04 to 2.67). This article builds that number from its definition, first by hand and then in the simulated trial, and shows what it does not say.
RMST is the area under the survival curve
Write $T$ for a patient's event time in months from randomisation, and $S(t) = P(T > t)$ for the probability of still being event-free at month $t$. Choose a horizon $\tau$ (tau), the last month the question is about. The RMST up to that horizon is
$$\mathrm{RMST}(\tau) = \int_0^{\tau} S(t)\,dt = \mathrm{E}\left[\min(T, \tau)\right]$$The integral is the area under the survival curve from month 0 to month $\tau$. The second form says the same thing as a mean: $\min(T, \tau)$, the smaller of the event time and the horizon, is the event-free time a patient has within the window, and $\mathrm{E}[\cdot]$ averages it over patients. A patient still event-free at the horizon counts as exactly $\tau$ months, however long they go on to live; that cap is what restricted means. Because the height of the curve is a probability and its width is time, the area is in months [1, 2].
Two extremes make the link plain. If nobody has the event before $\tau$, then $S(t) = 1$ throughout, the area is $1 \times \tau$, and everyone got the whole window. If everyone had the event at the start, the area would be 0.
Hand example 1, for intuition only: no censoring
Hand example. Take $\tau$ = 24 months and five patients per arm, each followed until the event or until month 24, so nobody is censored before the horizon. Within the window, event-free times are 24, 24, 20, 18 and 15 months in the treated arm and 24, 21, 18, 15 and 14 months in the control arm; a 24 means the patient was still event-free at the horizon. Trial data are almost never this complete, so this example only builds intuition.
-
Mean event-free time, treated arm
\[ \frac{24 + 24 + 20 + 18 + 15}{5} = \frac{101}{5} = 20.2 \]
Each patient contributes the months spent event-free within the window.
-
Mean event-free time, control arm
\[ \frac{24 + 21 + 18 + 15 + 14}{5} = \frac{92}{5} = 18.4 \]
Two treated patients and one control patient reach the horizon event-free.
-
RMST difference
\[ 20.2 - 18.4 = 1.8 \]
Months gained by the treated arm within the window, on average.
-
RMST ratio
\[ \frac{20.2}{18.4} = 1.10 \]
The same comparison on a relative scale.
-
Restricted mean time lost
\[ 24 - 20.2 = 3.8, \; 24 - 18.4 = 5.6 \]
The part of the window lost to the event, on average; the first value is the treated arm, the second the control arm.
Result: Within 24 months, treatment bought 1.8 event-free months on average, 20.2 against 18.4. The difference is a mean over patients, not a gain each patient received.
With censoring, measure the area instead
Averaging observed times breaks down once follow-up is incomplete. A patient lost to follow-up at month 8 was event-free for at least 8 months, but nobody knows for how much longer. Counting 8 as the event time understates the mean, and dropping the patient throws away the 8 months that were observed.
In the Kaplan-Meier curve, a censored patient stays in the risk set, the patients still event-free and under observation, until follow-up ends, and then leaves it without counting as an event. This rests on independent censoring, also called non-informative censoring: patients who leave are assumed to share the future risk of those who stay. Censoring is informative when this fails, for example when patients stop attending because they are getting worse. The simulated trial below generated censoring independently of treatment and of the risk of death, so the assumption holds there by design.
In real data it is an assumption, and the data alone cannot confirm it. Under this assumption, RMST in censored data is estimated by the area under the Kaplan-Meier curve. Because that curve is flat between events, the area is a sum of rectangles [1]. The series part on Kaplan-Meier and Cox works through the curve itself and how it is misread.
Hand example 2: ten patients with censoring
Hand example. Ten heart-failure patients are followed for up to 24 months after randomisation, and the event is death from any cause. Five die, at months 6, 10, 14, 18 and 20. One is lost to follow-up at month 8, and four are still alive when follow-up ends at month 24.
The Kaplan-Meier estimate of $S(t)$ starts at 1 and, at each death, is multiplied by the share at risk who survive it, 9/10, then 7/8 (the lost patient has left the risk set), 6/7, 5/6 and 4/5, giving 0.9, 0.7875, 0.675, 0.5625 and 0.45.
-
Months 0 to 6
\[ 6 \times 1 = 6 \]
Nobody has died yet, so the curve stays at 1.
-
Months 6 to 10
\[ 4 \times 0.9 = 3.6 \]
First death at month 6.
-
Months 10 to 14
\[ 4 \times 0.7875 = 3.15 \]
Second death at month 10.
-
Months 14 to 18
\[ 4 \times 0.675 = 2.7 \]
Third death at month 14.
-
Months 18 to 20
\[ 2 \times 0.5625 = 1.125 \]
Fourth death at month 18; this rectangle is only 2 months wide.
-
Months 20 to 24
\[ 4 \times 0.45 = 1.8 \]
Fifth death at month 20; the curve then stays flat to the horizon.
-
Add the rectangles
\[ \mathrm{RMST}(24) = 6 + 3.6 + 3.15 + 2.7 + 1.125 + 1.8 = 18.375 \]
The area under the step curve up to month 24, in months.
-
Time lost
\[ \mathrm{RMTL}(24) = 24 - 18.375 = 5.625 \]
The part of the 24 months lost to death, on average.
Result: Within 24 months the estimated mean time alive for these ten patients is 18.375 months. The lost patient contributes the 8 months observed and, after that, is assumed to fare like the patients still at risk.
Choosing the horizon
RMST has no meaning without its horizon, so $\tau$ belongs to the question, not to the analysis. Three conditions usually guide the choice [1, 3]. The horizon is pre-specified, in the protocol or analysis plan, before anyone sees the curves. It is clinically meaningful, such as two years after a heart-failure admission, and it lies where enough patients remain at risk in both arms for the curves to be estimated well.
In the simulated trial, patients were enrolled over time and follow-up stopped on one closing date, so each patient could be followed for between 24 and 36 months. Up to month 24 the only censoring is loss to follow-up. Beyond it, administrative censoring, the planned end of follow-up rather than anything about the patient, starts removing patients from both arms, and after month 36 there are no data at all. A horizon of 24 months therefore covers the window that every patient could have reached.
Choosing $\tau$ from the data by a stated rule, for example as late as the largest follow-up time, has also been studied. With such a rule, valid inference remains possible under mild conditions on censoring [3]. A horizon moved by eye after the results are seen, to wherever the gap looks largest, loses the protection of pre-specification.
Difference, ratio and time lost
With an RMST for each arm, the most direct contrast is the RMST difference, treated minus control, in months: 1.8 months in hand example 1. The RMST ratio, treated over control, puts the same comparison on a relative scale, 1.10 in that example. Both depend on $\tau$ and are quoted with it.
The complement of the RMST is the restricted mean time lost (RMTL):
$$\mathrm{RMTL}(\tau) = \tau - \mathrm{RMST}(\tau) = \int_0^{\tau} \left[1 - S(t)\right] dt$$It is the area between the survival curve and 1, the average time lost to the event before $\tau$. It comes to 3.8 and 5.6 months in hand example 1, and 5.625 months in hand example 2. A difference in RMTL is just the RMST difference with its sign reversed. The RMTL ratio is not redundant on the relative scale: when most of the window is spent event-free, a modest RMST ratio can sit beside a large relative cut in time lost.
The simulated trial: a hazard ratio that changes at 12 months
The dataset example is a simulated randomised trial of 1,500 adults enrolled after a heart-failure admission, 750 per arm, with a fictional drug. Here the event is death from any cause, so event-free time is time alive. During follow-up, 444 patients died in the control arm and 417 in the drug arm.
The data were generated with a known truth: the hazard ratio for death is 0.60 during the first 12 months and 1.10 afterwards. This is non-proportional hazards, a hazard ratio that changes over follow-up, so no single hazard ratio describes the effect. The two arms' cumulative hazards (the running totals of the hazard over time) would become equal only at month 60, far beyond the 36-month maximum follow-up.
So the survival curves do not cross within follow-up. They separate early and then draw closer again as the late hazard ratio of 1.10 takes effect. True survival is 0.681 without the drug and 0.794 with it at 12 months, and 0.464 and 0.521 at 24 months, so the gap roughly halves. The series hub describes the other questions this trial can answer, about repeated admissions and causes of death.
| Cox model | Estimated hazard ratio (95% CI) | True hazard ratio |
|---|---|---|
| One hazard ratio over all follow-up | 0.84 (0.74 to 0.96) | 0.84 (the same model in a very large simulated sample) |
| Months 0 to 12 | 0.62 (0.51 to 0.77) | 0.60 |
| After month 12 | 1.07 (0.89 to 1.28) | 1.10 |
What RMST says about the same trial
At $\tau$ = 24 months, the RMST is 16.88 months in the control arm and 18.74 months in the drug arm. The difference is 1.86 months (95% CI 1.04 to 2.67), close to the true 1.74 months built into the simulation. Over the first two years after randomisation, patients assigned to the drug lived on average 1.86 months longer.
The ratio scales tell the same story differently. The RMST ratio is 1.11 (95% CI 1.06 to 1.16), so the drug arm spent 1.11 times as much of the window alive. The control arm lost on average 7.12 of the 24 months to death and the drug arm 5.26, an RMTL ratio of 0.74 (95% CI 0.65 to 0.84). The RMTL ratio moves much further from 1 because most of the window is spent alive in both arms.
| Quantity | Control, months | Drug, months | Drug versus control |
|---|---|---|---|
| RMST(24), estimate (95% CI) | 16.88 (16.27 to 17.49) | 18.74 (18.20 to 19.28) | Difference 1.86 months (1.04 to 2.67); ratio 1.11 (1.06 to 1.16) |
| RMST(24), true value | 16.75 | 18.49 | Difference 1.74 months |
| RMTL(24), estimate | 7.12 | 5.26 | Ratio 0.74 (0.65 to 0.84) |
A stronger-looking hazard ratio, less time gained
The same simulation also produced a version of the trial with the same control arm and a constant effect. Proportional hazards therefore hold by design (the check gives P = 0.92). Its hazard ratio is further from 1, 0.78 (95% CI 0.68 to 0.90). Yet its RMST difference at 24 months is smaller, 1.33 months (95% CI 0.49 to 2.18), against a true 1.22.
In the trial with the early benefit, the true hazard ratio in the first 12 months is 0.60, stronger than the constant 0.79 of the second version. Each death averted early adds event-free time over most of the 24-month window. The single hazard ratio of that trial, 0.84, is also pulled toward 1 by the later period, when the drug no longer helps. That period includes months 24 to 36, which RMST(24) does not use.
The two estimated RMST differences have overlapping intervals, 0.49 to 2.18 and 1.04 to 2.67. But the true values show the same ordering as the estimates: 1.22 months with the constant effect against 1.74 months with the early benefit. The hazard ratios rank the two versions the other way: 0.79 for the constant effect against 0.84 for the early benefit, in a very large simulated sample. The two summaries answer different questions, which is why a report reads best with both and the curves.
| Summary | Constant effect | Early benefit (the trial above) |
|---|---|---|
| Test of proportional hazards | P = 0.92 | P = 0.0001 |
| Hazard ratio, estimate (95% CI) and true value | 0.78 (0.68 to 0.90); true 0.79 | 0.84 (0.74 to 0.96); 0.84 in a very large simulated sample |
| RMST difference at 24 months, estimate (95% CI) and true value | 1.33 months (0.49 to 2.18); true 1.22 | 1.86 months (1.04 to 2.67); true 1.74 |
The code: strmst2 in Stata and rmst2 in R
In Stata, the user-written command strmst2 [4] computes each arm's RMST up to $\tau$ from the Kaplan-Meier curve, with standard errors, the difference and the ratio; its rmtl option adds the time lost. In R, the function rmst2 from the survRM2 package does the same. Each pane below shows only the script lines that run this analysis, with the run's output beside them. The simulated trial file is not published; the lines shown are the RMST analysis to adapt to your own data.
In Stata, import delimited reads the simulated trial and stset fu_months, failure(death == 1) id(id) declares each patient's follow-up time and event. Then strmst2 arm, tau(24) rmtl produces the numbers in the RMST table above. In R, the data frame wn (the simulated trial) is read earlier in the script, and print(nrm) later prints the output shown.
Stata: strmst2 with the rmtl option
* ---------------------------------------------------------------- non-proportional-hazards file: RMST and RMTL by arm
* the simulated trial file (not published)
import delimited using ../../datasets/W3/W3_nonph.csv, clear asdouble
stset fu_months, failure(death == 1) id(id)
strmst2 arm, tau(24) rmtl
. strmst2 arm, tau(24) rmtl
Number of observations for analysis = 1500
The truncation time: tau = 24 was specified.
Restricted Mean Survival Time (RMST) by arm
-----------------------------------------------------------
Group | Estimate Std. Err. [95% Conf. Interval]
---------+-------------------------------------------------
arm 1 | 18.742 0.276 18.201 19.284
arm 0 | 16.884 0.311 16.275 17.494
-----------------------------------------------------------
Restricted Mean Time Lost (RMTL) by arm
-----------------------------------------------------------
Group | Estimate Std. Err. [95% Conf. Interval]
---------+-------------------------------------------------
arm 1 | 5.258 0.276 4.716 5.799
arm 0 | 7.116 0.311 6.506 7.725
-----------------------------------------------------------
Between-group contrast (arm 1 versus arm 0)
------------------------------------------------------------------------
Contrast | Estimate [95% Conf. Interval] P>|z|
---------------------+--------------------------------------------------
RMST (arm 1 - arm 0) | 1.858 1.042 2.673 0.000
RMST (arm 1 / arm 0) | 1.110 1.060 1.163 0.000
RMTL (arm 1 / arm 0) | 0.739 0.646 0.845 0.000
------------------------------------------------------------------------
R: rmst2 from the survRM2 package
# RMST still has a plain meaning when hazards are not proportional
nrm <- rmst2(wn$fu_months, wn$death, wn$arm, tau = 24)
> print(nrm)
The truncation time: tau = 24 was specified.
Restricted Mean Survival Time (RMST) by arm
Est. se lower .95 upper .95
RMST (arm=1) 18.742 0.276 18.201 19.283
RMST (arm=0) 16.884 0.311 16.275 17.493
Restricted Mean Time Lost (RMTL) by arm
Est. se lower .95 upper .95
RMTL (arm=1) 5.258 0.276 4.717 5.799
RMTL (arm=0) 7.116 0.311 6.507 7.725
Between-group contrast
Est. lower .95 upper .95 p
RMST (arm=1)-(arm=0) 1.858 1.043 2.672 0
RMST (arm=1)/(arm=0) 1.110 1.060 1.163 0
RMTL (arm=1)/(arm=0) 0.739 0.646 0.845 0
What RMST is not
RMST is not the median survival, the time at which the survival curve falls to one half, which is a single point on the curve. In the simulated trial the true medians are 21.66 months without the drug and 25.15 months with it, a gap that answers a different question. Nor is RMST the unrestricted mean survival time, the whole area under the curve, which needs follow-up to the end of the curve. Here about half of each arm is still alive at month 24, and nobody is followed beyond month 36.
RMST is not free of $\tau$: the RMST difference generally changes with the horizon, so a difference quoted without its horizon cannot be read. Nor does RMST replace the curves. Different pairs of curves can share one RMST difference, so the Kaplan-Meier curves, with the numbers at risk, still belong in the report [5].
Common misreadings and their fixes
-
"RMST should replace the hazard ratio."
RMST and the hazard ratio answer different questions about the same curves, and the simulated trial needed both to be read correctly.
Fix: RMST answers how much event-free time was gained up to a stated horizon. It complements the hazard ratio and the curves; it depends on the horizon, which must be chosen in advance.
-
"A hazard ratio of 0.70 means 30% fewer deaths."
A hazard ratio is a ratio of event rates, not of proportions of patients, and it carries no unit of time.
Fix: A hazard ratio of 0.70 compares the event rates among patients still event-free, summarised over follow-up under proportional hazards. The difference in the proportion who died by a stated time is read from the survival curves, not from the hazard ratio.
-
"An RMST difference of 1.8 months means every treated patient gained 1.8 months."
The difference is a mean over patients. Some may gain far more and some nothing, and a parallel-group trial cannot say which.
Fix: Read it as a population average: within the horizon, patients assigned to treatment were event-free 1.8 months longer on average.
-
"An RMST difference of 1.8 months means the median is 1.8 months longer."
The median is one point on the curve; RMST is the whole area up to tau.
Fix: Take a median difference only from the two medians, and only when both are reached.
-
"An RMST difference of 1.8 months means survival at 24 months is 1.8 percentage points higher."
Survival at a time point is a probability; RMST is accumulated time, in months.
Fix: Read the survival difference at a stated time from the curves, and the RMST difference as months gained up to tau.
-
"Tau can be set after looking at the curves."
A horizon placed where the gap looks largest tends to overstate the difference, and the usual confidence interval no longer holds.
Fix: Pre-specify tau from the clinical question and the planned follow-up, write it with every estimate, for example RMST(24), and report other horizons as sensitivity analyses.
What to do in your own analysis
- Choose $\tau$ from the clinical question and the planned minimum follow-up, write it into the protocol or analysis plan, and check that enough patients remain at risk in both arms at that time.
- Each arm's RMST, the difference with its confidence interval and the horizon are usually reported together in one sentence.
- Consider adding the RMST ratio or the RMTL ratio; the RMTL ratio is often the more telling relative measure when most patients stay event-free through the window.
- The Kaplan-Meier curves, with the numbers at risk, are usually shown beside any RMST or hazard ratio.
- Consider pre-specifying RMST beside the hazard ratio rather than adding it only after a proportional-hazards check fails. When hazards look non-proportional, period-specific hazard ratios may also show where the effect sits; a later-period ratio is best read as descriptive, because it compares only the patients who survived the earlier period.
- To adjust for baseline covariates, RMST can be modelled directly. One route computes a pseudo-observation for each patient from the whole-sample RMST and the RMST recomputed without that patient. A generalised linear model is then fitted to these values with robust (sandwich) standard errors, which allow for the pseudo-observations not being independent of one another [6]. Another route is a regression model for the restricted mean [7].
Glossary
- censoring (การเซ็นเซอร์)
- Incomplete follow-up in which a patient is known to be event-free only up to a certain time.
- administrative censoring (การเซ็นเซอร์ตามกำหนดสิ้นสุดการศึกษา)
- Censoring caused by the planned end of follow-up, not by anything about the patient.
- informative censoring (การเซ็นเซอร์แบบให้ข้อมูล)
- Censoring related to the risk of the event, so that patients who leave the risk set do not have the same future risk as those who stay; its absence is called independent, or non-informative, censoring.
- survival function (ฟังก์ชันการรอดชีพ)
- S(t), the probability of still being event-free at time t.
- Kaplan-Meier estimator (ตัวประมาณ Kaplan-Meier)
- A product-limit estimate of the survival function that accounts for censoring, assuming censoring is independent of the risk of the event.
- hazard ratio (อัตราส่วนฮาซาร์ด)
- The ratio of two groups' hazards, the event rates among patients still event-free; it is not a ratio of risks.
- non-proportional hazards (ฮาซาร์ดไม่เป็นสัดส่วน)
- A hazard ratio that changes over follow-up, so one number cannot describe it.
- restricted mean survival time (ระยะเวลารอดชีพเฉลี่ยแบบจำกัดช่วง)
- RMST(tau), the area under the survival curve up to tau: the mean event-free time within that window.
- tau (the horizon) (tau (ขอบเขตเวลา))
- The pre-specified time up to which a restricted mean is computed.
- restricted mean time lost (ระยะเวลาที่สูญเสียเฉลี่ยแบบจำกัดช่วง)
- RMTL(tau), equal to tau minus RMST(tau): the mean time lost to the event before tau.
- median survival (มัธยฐานการรอดชีพ)
- The time at which the survival curve falls to one half.
- robust (sandwich) standard error (ค่าคลาดเคลื่อนมาตรฐานแบบแซนด์วิช (robust standard error))
- A standard error that stays valid when the variance model is wrong, provided the mean model is right; versions of it also allow for observations that are not independent of one another.
References
- Royston P, Parmar MKB. Restricted mean survival time: an alternative to the hazard ratio for the design and analysis of randomized trials with a time-to-event outcome. BMC Med Res Methodol. 2013;13:152. doi:10.1186/1471-2288-13-152 https://doi.org/10.1186/1471-2288-13-152
- Uno H, Claggett B, Tian L, et al. Moving beyond the hazard ratio in quantifying the between-group difference in survival analysis. J Clin Oncol. 2014;32(22):2380-2385. doi:10.1200/JCO.2014.55.2208 https://doi.org/10.1200/JCO.2014.55.2208
- Tian L, Jin H, Uno H, Lu Y, Huang B, Anderson KM, Wei LJ. On the empirical choice of the time window for restricted mean survival time. Biometrics. 2020;76(4):1157-1166. doi:10.1111/biom.13237 https://doi.org/10.1111/biom.13237
- Cronin A, Tian L, Uno H. strmst2 and strmst2pw: new commands to compare survival curves using the restricted mean survival time. Stata J. 2016;16(3):702-716. doi:10.1177/1536867X1601600310 https://doi.org/10.1177/1536867X1601600310
- Kim DH, Uno H, Wei LJ. Restricted mean survival time as a measure to interpret clinical trial results. JAMA Cardiol. 2017;2(11):1179-1180. doi:10.1001/jamacardio.2017.2922 https://doi.org/10.1001/jamacardio.2017.2922
- Andersen PK, Hansen MG, Klein JP. Regression analysis of restricted mean survival time based on pseudo-observations. Lifetime Data Anal. 2004;10(4):335-350. doi:10.1007/s10985-004-4771-0 https://doi.org/10.1007/s10985-004-4771-0
- Tian L, Zhao L, Wei LJ. Predicting the restricted mean event time with the subject's baseline covariates in survival analysis. Biostatistics. 2014;15(2):222-233. doi:10.1093/biostatistics/kxt050 https://doi.org/10.1093/biostatistics/kxt050
Key takeaways
- RMST(tau) is the area under the survival curve up to a horizon tau: the mean event-free time within that window, in months.
- Averaging observed times works only without censoring; with censoring, RMST is estimated by the area under the Kaplan-Meier step curve, a sum of rectangles, which assumes censoring is unrelated to the risk of the event.
- The horizon is part of the question, so tau is pre-specified, clinically meaningful and placed where enough patients remain at risk in both arms.
- In the simulated trial a single hazard ratio of 0.84 averaged an early benefit with none later, while RMST read directly as 1.86 months gained on average within 24 months.
- Report RMST with its horizon beside the hazard ratio and the Kaplan-Meier curves, as a complement rather than a replacement.
Related in the wiki: [[survival-analysis-kaplan-meier-cox]] [[time-to-event-survival-analysis]]