How can I calculate the 95% CI for the ratio of two odds ratios, given:
- OR in test group = OR 21.85 (95% CI 3.08, 155.12)
- OR in control group = OR 27.15 (95% CI 11.64, 63.31)
How can I calculate the 95% CI for the ratio of two odds ratios, given:
The standard approach to calculating confidence intervals for odds ratios is to treat them as log-normally distributed. Your data are consistent with this, specifically,
Of course, some rounding errors are present, but it looks like a safe bet to proceed on this assumption.
Now, the ratio of two independent log-normals is again log-normal, where log-means are subtracted from each other and log-variances add up. So we can calculate the expectation of the ratios $\frac{\text{OR}_T}{\text{OR}_C}$ as well as the confidence interval straightforwardly:
$$ \begin{align*} \exp(\hat{\mu}_T-\hat{\mu_C}) &\approx 0.80 \\ \exp\big((\hat{\mu}_T-\hat{\mu_C})-1.96\times \sqrt{\hat{\sigma}_T^2+\hat{\sigma}_C^2}\big) &\approx 0.10 \\ \exp\big((\hat{\mu}_T-\hat{\mu_C})+1.96\times \sqrt{\hat{\sigma}_T^2+\hat{\sigma}_C^2}\big) &\approx 6.78. \end{align*} $$