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
pifand Population Attributable Fractionpaf. - Computation of confidence intervals under different methods such as
bootstrap,one2one,linear,loglinearandinverseusingpif.confidenceandpaf.confidence. - Graphical sensitivity analysis on how estimates change when changing the relative risk's parameter (
pif.plotandpaf.plot), when reducing the sample size (pif.sensitivityandpaf.sensitivity) as well as on the counterfactual (pif.heatmap).