Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

odds_ratio

Odds Ratio Calculation From a 2x2 Table


Description

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

Usage

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

# 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

Clinical Significance Measures

v1.0
GPL-3
Authors
Mike Malek-Ahmadi <michael.malekahmadi@bannerhealth.com>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.