odds_ratio_CMH: A function for calculating...

Description Usage Arguments Examples

View source: R/odds_ratio_CMH.R

Description

This function allows for odds ratio calculations across two strata.

Usage

1
odds_ratio_CMH(a, b, c, d, ci = FALSE, alpha = 0.05, cor = FALSE)

Arguments

a

A vector of the exposed + disease + count for each stratum

b

A vector of the exposed + disease - count for each stratum

c

A vector of the exposed - disease + count for each stratum

d

A vector of the exposed - disease - count for each stratum

ci

Return a confidence interval instead of point estimate

alpha

The confidence level of the interval

cor

Continuity correction

Examples

1
odds_ratio(c(30,40),c(20,40),c(50,10),c(10,50))

carter-allen/oddsR documentation built on May 28, 2019, 7:14 p.m.