Analyses

Odds ratio

Odds of a binary outcome in one group relative to another.

Edit on GitHub

When to use it

Use an odds ratio when both variables are binary and you want the odds of one level in the first group divided by the odds in the second. Levels are sorted alphabetically. The first outcome level is the event, and the first group level is the group in the numerator.

Assumptions

Both columns have exactly two levels. This is the same 2×2 table as Fisher’s exact test, with the odds ratio as the headline number.

Running it in Tensr

Analyze → Descriptive Statistics → Odds Ratio. In chat: “Odds ratio of group by outcome.”
Name the levels so alphabetical order matches the comparison you want.

Options

Prop

Type

Reading the output

The same weak 2×2. The odds ratio should sit near 1, and the interval should be read before the point estimate.

exposedNoYes
No2815
Yes2324

Odds ratio for exposed × case, n = 90. The primary result is not significant (p = .140). This is not large enough to treat the comparison this page is about as a reliable association. The result is non-significant: the data are still compatible with no effect. Metrics: Odds ratio = 1.948; 95% CI = [0.834, 4.552]; p (two-tailed) = .140; p (one-tailed) = .140.

Reporting (APA 7)

Odds ratio for exposed × case, n = 90. This result is not significant (p = .140). Report the estimate with that p, and do not describe the pattern as a reliable effect.

Coming from SPSS

Analyze → Descriptive Statistics → Odds Ratio. Check which level SPSS treats as the event. Tensr uses alphabetical order.