Source: Hazard Ratio concept page (v1.0.0)

HealthEconomics.wiki · Interactive explorer

Hazard Ratio Explorer

A hazard ratio compares event rates in two groups. It is a relative measure: it says nothing about absolute benefit until it is applied to a baseline survival curve. Change the baseline, the ratio and the time horizon to see what one number can and cannot tell you.

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(β).

It compares ratesAn HR of 0.70 is a 30% lower hazard, not automatically a 30% lower event probability or 30% longer survival.
It needs a baselineAbsolute survival, risk and life-years come only from applying the HR to a comparator curve.
It assumes a stable ratioUnder proportional hazards the ratio is constant over time, even when each arm's hazard changes.

From a hazard ratio to absolute outcomes

Constant hazards in each arm (exponential model), so the ratio is also constant.

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

Quantities at two years
QuantityComparatorTreatment

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.

Does one ratio fit over time?

Same comparator in every pattern; only the treatment effect over time changes.

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.

What the pattern implies
MeasureValue

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.

Applying an HR in a cohort model

The hazard ratio acts on rates, not on probabilities.

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.

The same hazards across cycle lengths
Cycle lengthpCpT (correct)pC × HRError

Estimating and reporting uncertainty

Ratio measures are analysed on the log scale.

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.

Check your reading

Decide whether each statement is true or false.

Before an HR goes into a model

Steps from the concept page. Tick each as you check a source.

0 of 6 checked
The core rule

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.

Sources cited on the concept page

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