Skip to main content

Section 15.5 Summary of Inference for Relative Risk

For tables of the form:
\(Group 1\) \(Group 2\)
\(A\) \(B\)
\(C\) \(D\)
\(A + C\) \(B + D\)

Relative Risk Procedures.

Statistic: Ratio of conditional proportions (typically set up to be larger than one) = \(\frac{\hat{p}_1}{\hat{p}_2}\)
Hypotheses: \(H_0: \frac{\pi_1}{\pi_2} = 1\text{;}\) \(H_a: \frac{\pi_1}{\pi_2} < 1\text{,}\) \(\frac{\pi_1}{\pi_2} > 1\text{,}\) or \(\frac{\pi_1}{\pi_2} \neq 1\)
p-value: Fisher’s Exact Test or normal approximation on \(\ln\left(\frac{\hat{p}_1}{\hat{p}_2}\right)\)
Confidence interval for \(\frac{\pi_1}{\pi_2}\text{:}\) Exponentiate endpoints of
\begin{equation*} \ln\left(\frac{\hat{p}_1}{\hat{p}_2}\right) \pm z^*\sqrt{\frac{1}{A}-\frac{1}{A+C}+\frac{1}{B}-\frac{1}{B+D}} \end{equation*}
Technology:
  • In Two-way Tables applet: Choose Relative Risk as statistic and check box for 95% CI
  • In R: You can install the fmsb package and use the riskratio command.
    fmsb::riskratio(A, B, A+C, B+D, conf.level, p.calc.by.independence = TRUE)
  • In JMP: From the Contingency Analysis hot spot, choose Relative Risk
See the Technology Detour for instructions on simulating random assignment for two-way tables.
You have attempted of activities on this page.