Estimating and displaying population attributable fractions using the R package: graphPAF
John Ferguson, Maurice O’Connell
Abstract
Abstract Here we introduce graphPAF, a comprehensive R package designed for estimation, inference and display of population attributable fractions (PAF) and impact fractions. In addition to allowing inference for standard population attributable fractions and impact fractions, graphPAF facilitates display of attributable fractions over multiple risk factors using fan-plots and nomograms, calculations of attributable fractions for continuous exposures, inference for attributable fractions appropriate for specific risk factor $$\rightarrow $$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mo>→</mml:mo> </mml:math> mediator $$\rightarrow $$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"> <mml:mo>→</mml:mo> </mml:math> outcome pathways (pathway-specific attributable fractions) and Bayesian network-based calculations and inference for joint, sequential and average population attributable fractions in multi-risk factor scenarios. This article can be used as both a guide to the theory of attributable fraction estimation and a tutorial regarding how to use graphPAF in practical examples.