• $\exp(1.4345+1.96 \times 0.5346) \approx 11.97\exp(1.4345-1.96 \times 0.5346) \approx 1.472$

In R

> exp(summary(m)$coefficients["DSH",1] + 
+     qnorm(c(0.025,0.5,0.975)) * summary(m)$coefficients["DSH",2])
[1]  1.472098  4.197368 11.967884
Answer from Henry on Stack Exchange
🌐
MedCalc
medcalc.org › en › calc › odds_ratio.php
Odds ratio - Free MedCalc online statistical calculator
September 24, 2025 - $$ \operatorname{95\%\text{ } CI} = \operatorname{exp} \Big( \text{ } \operatorname{ln}\left(OR\right) - 1.96 \times \operatorname{SE} \left \{ \operatorname{ln}\left(OR\right) \right \} \text{ }\Big) \quad \text{ to }\quad \operatorname{exp} \Big(\text{ } \operatorname{ln}\left(OR\right) + 1.96 \times \operatorname{SE} \left \{ \operatorname{ln}\left(OR\right) \right \} \text{ }\Big)$$ Where zeros cause problems with computation of the odds ratio or its standard error, 0.5 is added to all cells (a, b, c, d) (Pagano & Gauvreau, 2000; Deeks & Higgins, 2010).
🌐
NCBI
ncbi.nlm.nih.gov › books › NBK431098
Odds Ratio - StatPearls - NCBI Bookshelf
May 22, 2023 - Thus the odds ratio in this example is 20.5 with a 95% confidence interval of [2.7, 158]. (Note: If no rounding is performed when doing the above calculations, the odds ratio is 20.28 with 95% CI of [2.64, 155.6] which is fairly close to the rounded calculations.)
🌐
Rbiostatistics
rbiostatistics.com › OR_95_CI
Odds ratios and 95% confidence intervals | rBiostatistics.com
Odds ratios can also be presented in the form of a confidence interval. ... A 95% Confidence Interval provides an estimate of the precision of the odds ratio.
🌐
Scalestatistics
scalestatistics.com › odds-ratio.html
Calculate Odds Ratio with 95% Confidence Intervals - Accredited Professional Statistician For Hire
case-control design, the odds ratio with 95% confidence interval is used as the primary inference. In the table below, one can see that the formula is (A*D) / (B*C).
Top answer
1 of 2
3

Here is the derivation using the delta method. Let's look at the familiar -Table below.

Suppose that where is defined as in the table above.

The Odds Ratio is defined as We want to derive the variance of . The multivariable version of the delta method is: Where is the gradient vector. That is: We want to estimate Let the function be The gradient is The variance covariance matrix for a multinomial distribution with categories is $$ \Sigma=\frac{1}{n}\left( \begin{array}{cccc} \left(1-p_{11}\right) p_{11} & -p_{11} p_{12} & -p_{11} p_{21} & -p_{11} p_{22} \\ -p_{11} p_{12} & \left(1-p_{12}\right) p_{12} & -p_{12} p_{21} & -p_{12} p_{22} \\ -p_{11} p_{21} & -p_{12} p_{21} & \left(1-p_{21}\right) p_{21} & -p_{21} p_{22} \\ -p_{11} p_{22} & -p_{12} p_{22} & -p_{21} p_{22} & \left(1-p_{22}\right) p_{22} \\ \end{array} \right) $$ Then equals Now we need which equals: Substituting the MLEs for finally yields So the approximative standard error for the relative risk on the log-scale is So an approximative two-sided confidence interval of level for the relative risk on the original scale is

2 of 2
2

There is actually a section on this in the book Practical Guide to Logistic Regression by Joseph Hilbe on Pages 25-26. They derive a function here that is also in the LOGIT package as the toOR function.

toOR <- function(object, ...) { 
  coef <- object$coef 
  se <- sqrt(diag(vcov(object)))
  zscore <- coef / se 
  or <- exp(coef) 
  delta <- or * se 
  pvalue <- 2*pnorm(abs(zscore),lower.tail=FALSE) 
  loci <- coef - qnorm(.975) * se 
  upci <- coef + qnorm(.975) * se 
  ortab <- data.frame(or, delta, zscore,
                      pvalue, exp(loci), exp(upci)) 
  round(ortab, 4)
}

If you load the LOGIT library and the medpar dataset from their package, you can test this out yourself with the following code below:

library(LOGIT)
smlogit <- glm(died ~ white + los + factor(type), 
               family = binomial, data = medpar) 
toOR(smlogit)

Which gives you the confidence intervals you want on the far right.

                  or  delta  zscore pvalue exp.loci. exp.upci.
(Intercept)   0.4885 0.1065 -3.2855 0.0010    0.3186    0.7490
white         1.3569 0.2835  1.4610 0.1440    0.9010    2.0436
los           0.9635 0.0075 -4.7747 0.0000    0.9488    0.9783
factor(type)2 1.5163 0.2184  2.8900 0.0039    1.1433    2.0109
factor(type)3 2.5345 0.5789  4.0716 0.0000    1.6198    3.9657

Dipetkov has also kindly mentioned in the comments an alternative from the 'broom' package if you are interested as well.

🌐
Select-statistics
select-statistics.co.uk › home › odds ratio – confidence interval
Odds ratio - Confidence Interval - Select Statistical Consultants
April 9, 2020 - The odds ratio of lung cancer for ... We would like to know how reliable this estimate is? The 95% confidence interval for this odds ratio is between 3.33 and 59.3....
Find elsewhere
🌐
Wikipedia
en.wikipedia.org › wiki › Odds_ratio
Odds ratio - Wikipedia
4 weeks ago - This is an asymptotic approximation, and will not give a meaningful result if any of the cell counts are very small. If L is the sample log odds ratio, an approximate 95% confidence interval for the population log odds ratio is L ± 1.96SE. This can be mapped to exp(L − 1.96SE), exp(L + 1.96SE) ...
🌐
University of Washington
gsoutreach.gs.washington.edu › exda-pd › wp-content › uploads › 2012 › 04 › Lesson-5-Odds-OR-95CI-PowerPoint.ppt ppt
Lesson 5: Odds, Odds ratio, and the 95% confidence interval
The Department of Genome Sciences at the University of Washington in Seattle develops innovative programs that bring leading-edge science to teachers and students in K-12 schools.
🌐
Boston University
sphweb.bumc.bu.edu › otlt › MPH-Modules › EP › EP713_RandomError › EP713_RandomError4.html
Confidence Intervals for Measures of Association
However, people generally apply this probability to a single study. Consequently, an odds ratio of 5.2 with a confidence interval of 3.2 to 7.2 suggests that there is a 95% probability that the true odds ratio would be likely to lie in the range 3.2-7.2 assuming there is no bias or confounding.
🌐
PubMed Central
pmc.ncbi.nlm.nih.gov › articles › PMC1127651
The odds ratio - PMC
For the example, the log odds ratio is loge(4.89)=1.588 and the confidence interval is 1.588±1.96×0.103, which gives 1.386 to 1.790. We can antilog these limits to give a 95% confidence interval for the odds ratio itself,2 as exp(1.386)=4.00 to exp(1.790)=5.99.
🌐
Boston University
sphweb.bumc.bu.edu › otlt › MPH-Modules › PH717-QuantCore › PH717-Module8-CategoricalData › PH717-Module8-CategoricalData5.html
Confidence Intervals for Risk Ratios and Odds Ratios
Odds ratio [OR] = (odds of disease in exposed) / (odds of disease in unexposed) Both RR and OR are estimates from samples, and they are continuous measures. In order to assess the potential for random error, it is important to assess the precision of these estimates with a confidence interval, ...
🌐
NCSS
ncss.com › wp-content › themes › ncss › pdf › Procedures › PASS › Confidence_Intervals_for_the_Odds_Ratio_of_Two_Proportions.pdf pdf
PASS Sample Size Software NCSS.com 218-1 © NCSS, LLC. All Rights Reserved.
Confidence Level (1 - Alpha) ......................... 0.95 0.99 · Group Allocation ............................................ Equal (N1 = N2) Confidence Interval Width (Two-Sided) ......... 0.1 to 1.0 by 0.1 · Input Type ...................................................... Odds Ratios
🌐
Minitab
support.minitab.com › en-us › minitab › help-and-how-to › statistical-modeling › regression › how-to › fit-binary-logistic-model › interpret-the-results › all-statistics-and-graphs › odds-ratios
Odds Ratios for Fit Binary Logistic Model and Binary Logistic Regression - Minitab
Use the confidence interval to assess the estimate of the odds ratio. For example, with a 95% confidence level, you can be 95% confident that the confidence interval contains the value of the odds ratio for the population. The confidence interval helps you assess the practical significance ...
🌐
StatsDirect
statsdirect.com › help › exact_tests_on_counts › odds_ratio_ci.htm
Odds Ratio Confidence Interval (Exact) - StatsDirect
With a little rearrangement this gives the odds ratio (cross ratio, approximate relative risk): OR = (a*d)/(b*c). ... ..where BR is the baseline (control) response rate; BR can be estimated by b/(b+d) if not known from larger studies. This function uses an exact method to construct confidence ...
🌐
PubMed Central
pmc.ncbi.nlm.nih.gov › articles › PMC2938757
Explaining Odds Ratios - PMC
Thus, the odds of persistent suicidal behaviour is 1.63 higher given baseline depression diagnosis compared to no baseline depression. What are the confidence intervals for the OR calculated above? Confidence intervals are calculated using the formula shown below · Plugging in the numbers from the table above, we get: Since the 95% CI of 0.96 to 2.80 spans 1.0, the increased odds (OR 1.63) of persistent suicidal behaviour among adolescents with depression at baseline does not reach statistical significance.