odds_ratio: Odds Ratio Calculation From a 2x2 Table

Description Usage Arguments Value Author(s) References Examples

View source: R/odds_ratio.R

Description

Calculates an odds ratio and 95 percent confidence intervals for data from a 2x2 table

Usage

1
odds_ratio(Cell1, Cell2, Cell3, Cell4)

Arguments

Cell1

Value for cases with the factor/exposure of interest

Cell2

Value for cases without the factor/exposure of interest

Cell3

Value for controls with the factor/exposure of interest

Cell4

Value for controls without the factor/exposure of interest

Value

Odds ratio and 95 percent confidence intervals

Author(s)

Mike Malek-Ahmadi

References

1.Mufson EJ, Malek-Ahmadi M, Perez SE, Chen K. Braak staging, plaque pathology, and APOE status in elderly persons without cognitive impairment. Neurobiol Aging 2016;37:147-153.

Examples

1
2
3
4
5
6
7
# From Table 1 in Mufson et al (2016), using data for gender (Male/Female)
#and Braak stage group classification (I-II/III-V).

#Female/Braak III-V = 46, Female/Braak I-II = 14, Male/Braak III-V = 32,
#Male/Braak I-II = 31.

odds_ratio(46, 14, 32, 31)

ClinSigMeasures documentation built on Feb. 25, 2021, 5:08 p.m.