HealthEconomics.wiki — Knowledge infrastructure for health economicsDraft demonstrator for review

HealthEconomics.wiki · Interactive explorer

Relative Risk Explorer

Relative risk compares the probability of an event in one group with the probability in another group over a defined period. Build a two-group table, read the ratio, and see why the same relative effect can mean very different absolute consequences.

One ratio, three things to keep in view

Relative risk, also called the risk ratio, divides the event risk in the treatment or exposed group by the event risk in the comparator or unexposed group, over the same follow-up period.

RR = p1p0 = a / n1c / n0

It is a ratio of cumulative risks—not of odds, instantaneous hazards or person-time rates—and it is centred at one.

DefinitionSame event, comparable populations, one stated follow-up window.
DirectionWhich group is the reference? Swapping groups inverts the ratio.
Absolute scaleThe baseline risk decides how many events the ratio actually changes.

Start with a study scenario

Select a case to load its two-group table, or enter your own counts. Scenarios marked “concept page” reproduce the published worked examples; the others are fictional teaching cases.

Two-group risk calculatorScenario: Adverse events at one year

Enter whole-number event counts and group totals. Risks, the table margins and all results update as you type. Interpretations treat the event as adverse, as on the concept page.

Two-by-two table of events by group
GroupEventsTotalNo eventRisk
Treatment or exposed numerator a ––
Comparator or unexposed reference ––
Both groups must share this outcome window.

Treatment or exposed

–

Comparator or unexposed

–

Each grid shows events per 100 people. Filled circles are people with the event; when a group total is not 100 the grid is scaled and rounded for display only.

Waiting for counts

Enter events and totals for both groups

The relative risk and its absolute consequences will appear here.

Same relative effect, different absolute benefit

Health-economic models usually combine a relative treatment effect with a baseline risk: ptreat = RR × pcontrol. Move the sliders and compare the gap between the two lines.

0.101.002.00
1%90%
Events per 100 by comparator risk

Dashed line: comparator events per 100. Solid line: treatment events per 100 under the proportional-risk assumption. The vertical bar marks the absolute difference at the selected baseline.

Absolute effects at different baseline risks for the selected relative risk
Comparator riskTreatment riskAbsolute differenceNNT or NNH (whole persons)

With RR = 0.70 the 5%, 20% and 50% rows reproduce the table on the concept page. Rows are illustrative calculations, not evidence that an RR is constant across risk groups.

Is it really a relative risk?

Odds are not risks. When events are common, an odds ratio sits farther from one than the relative risk. Given a known comparator risk p0, the concept page gives RR = OR ÷ [(1 − p0) + p0 × OR].

0.205.00
1%90%
Implied relative risk for the selected odds ratio at different comparator risks
Comparator riskImplied treatment riskImplied RROR ÷ RR

The conversion is conditional on the supplied baseline risk and a compatible estimand. This tool deliberately does not convert hazard ratios or rate ratios: that requires a survival model, a time horizon and attention to competing risks.

Check the reporting

Each statement is a fictional report. Decide whether it is sound or misleading, using the common errors listed on the concept page.

Summary and limitations

The reporting rule

Report the relative risk with both group risks, an uncertainty interval, the reference group, the event definition, the follow-up period and the study design—and give the absolute risk difference whenever it is decision-relevant.

A practical workflow (from the concept page)
  1. Define the population, treatment or exposure, comparator, event, time horizon and analysis estimand.
  2. Verify that numerator and denominator groups use compatible eligibility, follow-up and outcome ascertainment.
  3. Calculate each group risk using the correct number at risk and event count.
  4. Estimate the RR with a method appropriate to the study design, clustering, adjustment and event frequency.
  5. Quantify uncertainty on a suitable scale and address sparse or zero-event data explicitly.
  6. Report absolute risks and risk differences alongside the RR whenever they are decision-relevant.
  7. Assess confounding, effect modification, missingness, selection, misclassification and competing risks.
  8. Translate the effect into target-population risk only with a compatible baseline risk and time horizon.
  9. Propagate parameter uncertainty, dependence and treatment-effect duration through any economic model.
  10. Document the group order, event direction, formula, model, assumptions, diagnostics and limitations.
Method, safeguards and limitations of this explorer

The calculator handles one simple, independent two-group table. It computes crude risks, the sample relative risk, the risk difference, the number needed to treat or harm, and an approximate large-sample 95% interval using SE[log(RR)] = √[(1/a − 1/n1) + (1/c − 1/n0)].

It does not handle clustered trials, matched data, repeated observations, survey designs, adjusted models, or sparse events. When a group has zero events the ordinary log-RR and standard-error formulas are undefined, so no interval is shown and no continuity correction is applied; exact, likelihood-based, Bayesian or other sparse-data methods may be preferable.

A confidence interval describes sampling uncertainty only. It does not capture bias from confounding, selection, misclassification, missing data or an inappropriate model, and an interval that excludes one does not prove a causal effect. The number needed to treat is computed from unrounded risks and is meaningful only when the estimate supports a causal treatment comparison.

The baseline-risk panel applies ptreat = RR × pcontrol, which is valid only when the RR and baseline risk refer to compatible populations, outcomes, follow-up periods and competing-event structures. Relative effects should not be assumed constant across risk groups, and applying an annual RR in every model cycle may imply an unsupported treatment-effect duration.

All scenarios are educational. Nothing here is a clinical recommendation or evidence about any real treatment.

Related concepts