calc_or_wald: Calculate Odds Ratio with Wald Confidence Intervals

View source: R/interpret_or2.R View source: R/interpret_or.R

calc_or_waldR Documentation

Calculate Odds Ratio with Wald Confidence Intervals

Description

Computes the odds ratio between two binary variables along with the Wald confidence intervals.

Usage

calc_or_wald(n00, n01, n10, n11, alpha = 0.05)

Arguments

n00

Number of cases where both variables are 0.

n01

Number of cases where x = 0 and y = 1.

n10

Number of cases where x = 1 and y = 0.

n11

Number of cases where both variables are 1.

alpha

Significance level for the two-sided Wald confidence interval (default is 0.05).

Value

A tibble containing odds ratio, lower confidence interval, upper confidence interval, and alpha value.


emilelatour/lamisc documentation built on March 29, 2025, 1:23 p.m.