One ratio, three things to keep in view
The hazard h(t) is the instantaneous event rate at time t among people still free of the event and under observation. The hazard ratio is HR(t) = hT(t) / hC(t); in a Cox model with a binary treatment covariate, HR = exp(β).
The starting values reproduce the worked example on the concept page: a comparator hazard of 0.10 per year, a treatment hazard of 0.07 per year, read at two years. Try raising the baseline hazard or lengthening the horizon while the HR stays fixed.
Events per person-year at risk (0.01 to 1.00).
Treatment hazard ÷ comparator hazard (0.10 to 3.00).
Years from the time origin (0.5 to 20).
Direction matters: a lower hazard is favourable for death, unfavourable for recovery.
Event-free probability over time
| Quantity | Comparator | Treatment |
|---|
Formulae used: S(t) = exp(−ht); ST(t) = SC(t)HR; RMST to t = (1 − S(t)) / h; median = ln 2 / h. The constant-hazard results for RMST and medians do not carry over to other survival distributions. All figures are illustrative, not estimates for a real treatment.
The comparator follows an illustrative Weibull hazard that rises over time, so neither arm has a constant hazard. Choose a pattern of treatment effect and compare the three displays used to judge proportional hazards.
Hazard ratio over time, HR(t)
A flat line means proportional hazards. The dotted line marks HR = 1.
Event-free probability, S(t)
Curves that cross signal that the direction of benefit changes.
Log-cumulative hazard plot
Under proportional hazards the lines are roughly parallel, a vertical gap of log HR apart.
| Measure | Value |
|---|
Model: comparator cumulative hazard HC(t) = 0.15 t1.2; treatment cumulative hazard is the integral of HR(s) × hC(s), computed numerically. The patterns are constructed for teaching. In practice HR(t) is estimated with uncertainty, and a formal check also uses tests based on scaled Schoenfeld residuals (Grambsch and Therneau), which this tool does not simulate.
With a constant hazard h and cycle length u, the per-cycle transition probabilities are pC = 1 − exp(−hCu) and pT = 1 − (1 − pC)HR. Multiplying pC by the HR is a shortcut whose error grows as probabilities rise or cycles lengthen.
Per year (0.01 to 2.00).
0.10 to 3.00.
The model's time step.
| Cycle length | pC | pT (correct) | pC × HR | Error |
|---|
Interval limits are built around ln(HR) and then exponentiated, so the interval is symmetric on the log scale and asymmetric around the HR. Use the left panel to estimate an HR from events and person-time under constant hazards, or the right panel to recover the standard error from a published interval.
Sets the new interval on the left, and the coverage assumed for the reported interval on the right.
From event counts and person-time
HR = (dT/PTT) / (dC/PTC); SE = √(1/dT + 1/dC)
From a reported hazard ratio and interval
SE = (ln HRU − ln HRL) / (2z)
Person-time units cancel, provided both arms use the same unit. The event-count formula assumes constant hazards; a Cox model estimate and its standard error will generally differ. HTA bodies read intervals differently: IQWiG, for example, uses the upper confidence limit of the HR against fixed thresholds to judge the extent of added benefit for time-to-event outcomes. Consult the relevant methods guide rather than this tool for any such judgement.
A hazard ratio is a relative rate. Absolute survival, risk and life-years require a baseline curve, a stated time horizon and a credible assumption about how the ratio behaves over time.
Method, safeguards and limitations
This demonstrator teaches how a hazard ratio relates to other quantities under simple, stated assumptions. It does not estimate treatment effects, assess study quality or replace a survival analysis. All numbers are illustrative.
- Section 1 assumes constant hazards in both arms. With other distributions, the hazard ratio no longer maps to the ratio of medians, and RMST must be computed from the fitted curve.
- Section 2 uses constructed patterns of HR(t). Real HR(t) estimates are noisy, especially with sparse late follow-up, and assessment draws on plots, formal diagnostics, follow-up duration and biological plausibility together.
- Cause-specific and subdistribution hazard ratios are not interchangeable, and neither alone supplies every competing-event probability a model needs.
- Censoring assumptions, treatment switching, covariate adjustment and patient selection can alter an HR or its meaning. Period-specific HRs carry a built-in selection bias because those still at risk have been selected by earlier events (Hernán, 2010). Observational HRs need further attention to confounding before any causal claim.
- Educational use only. Not medical advice and not evidence about any real treatment.
Sources cited on the concept page
- Cox DR. Regression models and life-tables. J R Stat Soc Series B. 1972;34(2):187–202.
- Fine JP, Gray RJ. A proportional hazards model for the subdistribution of a competing risk. JASA. 1999;94(446):496–509.
- Fleurence RL, Hollenbeak CS. Rates and probabilities in economic modelling. PharmacoEconomics. 2007;25(1):3–6.
- Grambsch PM, Therneau TM. Proportional hazards tests and diagnostics based on weighted residuals. Biometrika. 1994;81(3):515–526.
- Hernán MA. The hazards of hazard ratios. Epidemiology. 2010;21(1):13–15.
- Latimer NR. NICE DSU Technical Support Document 14. Sheffield: DSU; 2011 (updated 2013).
- NICE. Technology appraisal and highly specialised technologies guidance: the manual (PMG36), section 4.6. 2022 (updated 31 March 2026).
- Royston P, Parmar MKB. Restricted mean survival time. BMC Med Res Methodol. 2013;13:152.
- Rutherford MJ, et al. NICE DSU Technical Support Document 21: Flexible methods for survival analysis. 2020 (updated 2022).
Concept content adapted from: Baines, D. (2026) “Hazard Ratio.” Health Economics Concepts. London: Intelligent Parameters Ltd. Version 1.0.0. https://healtheconomics.wiki/concept/hazard-ratio