Visualizing odds and risk ratios from a 2x2 table

Please input data and press 'calculate'.

Exposed?

Outcome

No outcome

Exposed

Not exposed



Risk ratio


Population attributable risk


P-value


Odds ratio


Risk difference



Number needed to treat



Note: PAR is population attributable risk, note this is assumed to be a cohort or cross-sectional study, where the relevant prevalence of exposure is the unconditional.

Confidence interval for population attributable risk is estimated using the delta method.