get_paf | R Documentation |
Calculate population attributable fraction using odds ratio
get_paf(df_or, which_or, exp_var, exp_level, df_matched)
df_or |
A data frame that stores odds ratios for all exposure of interest |
which_or |
An unquoted name of the name of the column that stores odds
ratio, or its lower or upper confidence limit in |
exp_var |
An unquoted name of the column that stores the name of
exposures in |
exp_level |
An unquoted name of the column that stores the level of the
exposure variable in |
df_matched |
The list of data frames used to calculate odds ratios |
Use odds ratio, its upper confidence limit, and its lower confidence limit to calculate population attributable fraction, its upper confidence limit, and its lower confidence limit, respectively.
For more information, please refer to the vignette using
browseVignettes("nncc")
.
A data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.