Odds Ratio, Relative Risk & NNT

Compute the three headline measures of risk in R from a 2×2 table — odds ratio, relative risk, and the number needed to treat.

The three numbers epidemiology runs on, straight from a 2×2 table.