Research toolsEpidemiology
2 × 2 table: odds ratio, risk ratio, ARR and NNT
Analyses a 2 × 2 contingency table, producing the odds ratio, risk ratio, risk difference, absolute risk reduction and number needed to treat, each with a confidence interval.
| Outcome present | Outcome absent | |
|---|---|---|
| Exposed / treated | ||
| Unexposed / control |
Results
- Odds ratio
- 3.85795% CI 1.767 to 8.422
- Risk ratio
- 3.00095% CI 1.551 to 5.803
- Risk, exposed group
- 30.00%
- Risk, unexposed group
- 10.00%
- Risk difference
- +20.00%95% CI 9.26% to 30.74%
- Number needed to harm
- 5Exactly 5.00
Odds ratios exceed risk ratios when the outcome is common. Do not describe an odds ratio as a risk.
When to use it
- Analysing a cohort study, a randomised trial, or a case–control study with a binary exposure and a binary outcome.
- Converting a published 2 × 2 table into the effect measures a paper did not report.
- Translating a relative effect into the absolute terms a clinician can act on.
Formula
Outcome + Outcome − Exposed / a b → Rₑ = a/(a+b) treated Unexposed / c d → Rᵤ = c/(c+d) control OR = ad / bc SE(ln OR) = √( 1/a + 1/b + 1/c + 1/d ) RR = Rₑ / Rᵤ SE(ln RR) = √( 1/a − 1/(a+b) + 1/c − 1/(c+d) ) RD = Rₑ − Rᵤ SE(RD) = √( Rₑ(1−Rₑ)/(a+b) + Rᵤ(1−Rᵤ)/(c+d) ) NNT = 1 / |RD| Ratio intervals are computed on the log scale and then exponentiated: CI(OR) = exp( ln OR ± z · SE(ln OR) )
Worked example
A cohort study: 30 of 100 exposed participants developed the outcome, against 10 of 100 unexposed.
- a — exposed, outcome
- 30
- b — exposed, no outcome
- 70
- c — unexposed, outcome
- 10
- d — unexposed, no outcome
- 90
OR 3.86 (1.77 to 8.42). RR 3.00 (1.55 to 5.80). Risk difference +0.200. Number needed to harm 5.
Exposure roughly tripled the risk. In absolute terms, one additional person developed the outcome for every five exposed. The odds ratio exceeds the risk ratio here because the outcome is common — which is exactly why odds ratios should not be described as risks.