get_paf {nncc} | R Documentation |
Calculate population attributable fraction using odds ratio
Description
Calculate population attributable fraction using odds ratio
Usage
get_paf(df_or, which_or, exp_var, exp_level, df_matched)
Arguments
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 |
Details
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")
.
Value
A data frame.
[Package nncc version 2.0.0 Index]