First release!
The R package pifpaf
calculates the Population Attributable Fraction (PAF) and the Potential Impact Fraction (PIF) via the empirical, kernel, and approximate methods. Confidence intervals for the PAF and the PIF using different approaches have been programmed. In addition, sensitivity analysis can be conducted.
Major Features
- Estimation of the Potential Impact Fraction
pif
and Population Attributable Fractionpaf
. - Computation of confidence intervals under different methods such as
bootstrap
,one2one
,linear
,loglinear
andinverse
usingpif.confidence
andpaf.confidence
. - Graphical sensitivity analysis on how estimates change when changing the relative risk's parameter (
pif.plot
andpaf.plot
), when reducing the sample size (pif.sensitivity
andpaf.sensitivity
) as well as on the counterfactual (pif.heatmap
).