Calculate odds ratio, relative risk, and confidence intervals from 2x2 contingency tables.
Exposed / Case | Not Exposed / Control | |
---|---|---|
Outcome Present | ||
Outcome Absent |
a = Number of exposed subjects with the outcome
b = Number of unexposed subjects with the outcome
c = Number of exposed subjects without the outcome
d = Number of unexposed subjects without the outcome
The odds ratio is calculated as:
Where:
The relative risk (risk ratio) is calculated as:
Where:
The confidence interval is calculated using the log odds ratio:
Where the standard error (SE) is:
And the confidence interval for the odds ratio is: