epi_stats | R Documentation |
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
epi_stats(disease, exposure)
disease |
The disease column, made up of 1s and 0s |
exposure |
The exposure column, made up of 1s and 0s |
A data.frame
with one row containing various statistics in the columns
Special thanks to Josh Sadowski for providing the bones of this function, which I have added to and edited.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.