Calculate population attributable fraction using odds ratio
get_paf(df_or, which_or, exp_var, exp_level, df_matched)A data frame.
A data frame that stores odds ratios for all exposure of interest
An unquoted name of the name of the column that stores odds
ratio, or its lower or upper confidence limit in df_or.
An unquoted name of the column that stores the name of
exposures in df_or
An unquoted name of the column that stores the level of the
exposure variable in df_or
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").