Questions tagged [odds-ratio]

A measure of association between two binary variables equal to the odds of a 'positive' outcome in 1 variable divided by the odds in the other. The OR ranges (0, infinity). It has a strong connection to logistic regression.

The odds ratio is a measure of association between two binary variables. If $X_1$ and $X_2$ are two conditions and the outcome of interest is coded as $1$, then $p(1|X_1)$ is the probability of that outcome occurring in the first condition. The odds ratio is equal to:

$$ {\rm OR} = \frac{ \frac{p(1|X_1)}{(1-p(1|X_1))} }{ \frac{p(1|X_2)}{(1-p(1|X_2))} } $$ or, $$ {\rm OR} = \frac{p(1|X_1)\quad (1-p(1|X_2))}{(1-p(1|X_1))\quad p(1|X_2)\quad} $$

The OR ranges $(0, +\infty)$. When ${\rm OR} < 1$, it indicates a negative relationship between the two variables; that is, it indicates the event is less likely to occur in the $X_1$ condition. ${\rm OR} > 1$ indicates a positive relationship. When the probabilities are exactly equal, $OR = 1$. Due to this asymmetry, the odds ratio is sometimes difficult for people to interpret and they take the natural log of the odds ratio. In that case, a positive log odds ratio implies the event is more likely in the first condition, a negative log odds ratio implies the even is less likely in the first condition, and $\ln(OR) = 0$ implies equality.

The odds ratio (and especially the log odds ratio) has a strong connection to logistic regression. The fitted coefficients for continuous variables in a logistic regression model are the log odds ratios associated with a one unit change in the variable in question. (The intercept is the log of the odds [not ratio] of the event when all the variables are $0$.)

598 questions
52
votes
1 answer

Why do my p-values differ between logistic regression output, chi-squared test, and the confidence interval for the OR?

I have built a logistic regression where the outcome variable is being cured after receiving treatment (Cure vs. No Cure). All patients in this study received treatment. I am interested in seeing if having diabetes is associated with this outcome.…
50
votes
7 answers

Logistic Regression in R (Odds Ratio)

I'm trying to undertake a logistic regression analysis in R. I have attended courses covering this material using STATA. I am finding it very difficult to replicate functionality in R. Is it mature in this area? There seems to be little…
SabreWolfy
  • 1,101
  • 2
  • 15
  • 25
46
votes
2 answers

Poisson regression to estimate relative risk for binary outcomes

Brief Summary Why is it more common for logistic regression (with odds ratios) to be used in cohort studies with binary outcomes, as opposed to Poisson regression (with relative risks)? Background Undergraduate and graduate statistics and…
34
votes
2 answers

Interpretation of simple predictions to odds ratios in logistic regression

I'm somewhat new to using logistic regression, and a bit confused by a discrepancy between my interpretations of the following values which I thought would be the same: exponentiated beta values predicted probability of the outcome using beta…
mike
  • 767
  • 4
  • 10
  • 15
25
votes
1 answer

Help me understand adjusted odds ratio in logistic regression

I've been having a hard time trying to understand the use of logistic regression in a paper. The paper available here uses logistic regression to predict probability of complications during cataract surgery. What is confusing me is that the paper…
mahonya
  • 1,051
  • 2
  • 8
  • 16
19
votes
2 answers

Does it make sense to use Logistic regression with binary outcome and predictor?

I have a binary outcome variable {0,1} and a predictor variable {0,1}. My thoughts are that it doesn't make sense to do logistic unless I include other variables and calculate the odds ratio. With one binary predictor, wouldn't calculation of…
kms
  • 530
  • 2
  • 17
17
votes
3 answers

Why do odds ratios from formula and R's fisher.test differ? Which one should one choose?

In the following example > m = matrix(c(3, 6, 5, 6), nrow=2) > m [,1] [,2] [1,] 3 5 [2,] 6 6 > (OR = (3/6)/(5/6)) #1 [1] 0.6 > fisher.test(m) #2 Fisher's Exact Test for Count Data data: m p-value =…
winerd
  • 569
  • 1
  • 4
  • 16
17
votes
1 answer

Negative coefficient in ordered logistic regression

Suppose we have the ordinal response $y:\{\text{Bad, Neutral, Good}\} \rightarrow \{1,2,3\}$ and a set of variables $X:=[x_1,x_2,x_3]$ that we think will explain $y$. We then do an ordered logistic regression of $X$ (design matrix) on $y$…
user14281
15
votes
4 answers

What is the distribution of OR (odds ratio)?

I have a bunch of articles presenting "OR" with a- 95% CI (confidence intervals). I want to estimate from the articles the P value for the observed OR. For that, I need an assumption regarding the OR distribution. What distribution can I safely…
Tal Galili
  • 19,935
  • 32
  • 133
  • 195
14
votes
3 answers

Different ways to produce a confidence interval for odds ratio from logistic regression

I am studying how to construct a 95% confidence interval for odds ratio from the coefficients obtained in the logistic regression. So, considering the logistic regression model, $$ \log\left(\frac{p}{1 - p}\right) = \alpha + \beta x …
13
votes
2 answers

Is there any functional difference between an odds ratio and hazard ratio?

In logistic regression, an odds ratio of 2 means that the event is 2 time more probable given a one-unit increase in the predictor. In Cox regression, a hazard ratio of 2 means the event will occur twice as often at each time point given a one-unit…
ATJ
  • 1,711
  • 1
  • 15
  • 20
13
votes
1 answer

Is meta-analysis of odds ratios essentially hopeless?

In a recent paper Norton et al. (2018)$^{[2]}$ state that Different odds ratios from the same study cannot be compared when the statistical models that result in odds ratio estimates have different explanatory variables because each model has a…
COOLSerdash
  • 25,317
  • 8
  • 73
  • 123
12
votes
3 answers

logit - interpreting coefficients as probabilities

I seem to be missing some vital piece of information. I am aware that the coefficient of logistic regression are in log(odds), called the logit scale. Therefore to interpret them, exp(coef) is taken and yields OR, the odds ratio. If $\beta_1 =…
user1607
  • 729
  • 1
  • 5
  • 19
12
votes
1 answer

Calculating risk ratio using odds ratio from logistic regression coefficient

I have a binary logistic regression with just one binary fixed factor predictor. The reason I don't do it as a Chi square or Fisher's exact test is that I also have a number of random factors (there are multiple data points per individual and…
11
votes
2 answers

Exponentiated logistic regression coefficient different than odds ratio

As I understand it, the exponentiated beta value from a logistic regression is the odds ratio of that variable for the dependent variable of interest. However, the value does not match the manually calculated odds ratio. My model is predicting…
mike
  • 767
  • 4
  • 10
  • 15
1
2 3
39 40