epi_stats: Calculate Various Statistics for an Epidemiological Analysis

View source: R/epi_stats.R

epi_statsR Documentation

Calculate Various Statistics for an Epidemiological Analysis

Description

Calculate various statistics common in an epidemiological analysis, such as incidence, risk ratio, odds ratio, Fisher's exact, and Chi-square, for a single disease-exposure combination

Usage

epi_stats(disease, exposure)

Arguments

disease

The disease column, made up of 1s and 0s

exposure

The exposure column, made up of 1s and 0s

Value

A data.frame with one row containing various statistics in the columns

Thanks

Special thanks to Josh Sadowski for providing the bones of this function, which I have added to and edited.


npeters1322/hospEpi documentation built on April 30, 2022, 6:12 p.m.