Abstract
The attributable fraction (or attributable risk) is a widely used measure that quantifies the public health impact of an exposure on an outcome. Even though the theory for AF estimation is well developed, there has been a lack of up-to-date software implementations. The aim of this article is to present a new R package for AF estimation with binary exposures. The package AF allows for confounder-adjusted estimation of the AF for the three major study designs: cross-sectional, (possibly matched) case–control and cohort. The article is divided into theoretical sections and applied sections. In the theoretical sections we describe how the confounder-adjusted AF is estimated for each specific study design. These sections serve as a brief but self-consistent tutorial in AF estimation. In the applied sections we use real data examples to illustrate how the AF package is used. All datasets in these examples are publicly available and included in the AF package, so readers can easily replicate all analyses.
Similar content being viewed by others
References
Poole C. A history of the population attributable fraction and related measures. Ann Epidemiol. 2015;25(3):147–54.
Levin ML. The occurrence of lung cancer in man. Acta Union Int Contr. 1953;9(3):531–41.
Chen YQ, Hu C, Wang Y. Attributable risk function in the proportional hazards model for censored time-to-event. Biostatistics. 2006;7(4):515–29.
Chen L, Lin DY, Zeng D. Attributable fraction functions for censored event times. Biometrika. 2010;97(3):713–26.
Sjölander A, Vansteelandt S. Doubly robust estimation of attributable fractions in survival analysis. Stat Methods Med Res. 2014. doi:10.1177/0962280214564003.
Sturmans F, Mulder PG, Valkenburg HA. Estimation of the possible effect of interventive measures in the area of ischemic heart diseases by the attributable risk percentage. Am J Epidemiol. 1977;105(3):281–9.
Deubner DC, Wilkinson WE, Helms MJ, Tyroler HA, Hames CG. Logistic model estimation of death attributable to risk factors for cardiovascular disease in Evans County. Ga Am J Epidemiol. 1980;112(1):135–43.
Greenland S, Drescher K. Maximum likelihood estimation of the attributable fraction from logistic models. Biometrics. 1993;49(3):865–72.
Sjölander A, Vansteelandt S. Doubly robust estimation of attributable fractions. Biostatistics. 2011;12(1):112–21.
Miettinen OS. Proportion of disease caused or prevented by a given exposure, trait or intervention. Am J Epidemiol. 1974;99(5):325–32.
Bruzzi P, Green SB, Byar DP, Brinton LA, Schairer C. Estimating the population attributable risk for multiple risk factors using case–control data. Am J Epidemiol. 1985;122(5):904–14.
Core Team R. R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. 2015. https://www.r-project.org/. Accessed 25 Nov 2015.
Nunes T, Heuer C, Marshall J, Sanchez J, Thornton R, Reiczigel J, Robison-Cox J, Sebastiani P, Solymos P, Yoshida K, Jones G, Firestone SPaS. epiR: Tools for the analysis of epidemiological data. CRAN. 2015. https://cran.r-project.org/web/packages/epiR/index.html. Accessed 25 Nov 2015.
Schenck L, Atkinson E, Crowson C, Therneau T. attribrisk: population attributable risk. CRAN. 2014. https://cran.r-project.org/web/packages/attribrisk/index.html. Accessed 25 Nov 2015.
Chen L. paf: attributable fraction function for censored survival data. CRAN. 2014. https://cran.r-project.org/web/packages/paf/index.html. Accessed 25 Nov 2015.
Juul S, Frydenberg M. An introduction to Stata for health researchers. 3rd ed. College Station, Texas: Stata Press; 2010.
Lehnert-Batar A, Pfahlberg A, Gefeller O. Comparison of confidence intervals for adjusted attributable risk estimates under multinomial sampling. Biom J. 2006;48(5):805–19.
De Jong UW, Breslow N, Hong JG, Sridharan M, Shanmugaratnam K. Aetiological factors in oesophageal cancer in Singapore Chinese. Int J Cancer. 1974;13(3):291–303.
Cox DR. Regression models and life-tables. J R Stat Soc Ser B Stat Methodol. 1972;34(2):187–220.
Breslow N. Discussion of the paper by D. R. Cox. J R Stat Soc B. 1972;34:216–7.
Sauerbrei W, Royston P, Look M. A new proposal for multivariable modelling of time-varying effects in survival data based on fractional polynomial time-transformation. Biom J. 2007;49(3):453–73.
Royston P, Lambert PC. Flexible Parametric survival analysis using Stata: beyond the Cox model. 1st ed. College Station, Texas: Stata Press; 2011.
Eide GE, Gefeller O. Sequential and average attributable fractions as aids in the selection of preventive strategies. J Clin Epidemiol. 1995;48(5):645–55.
Rämsch C, Pfahlberg AB, Gefeller O. Point and interval estimation of partial attributable risks from case–control data using the R-package ’pARccs’. Comput Meth Prog Biol. 2009;94(1):88–95.
Morgenstern H, Bursic ES. A method for using epidemiologic data to estimate the potential impact of an intervention on the health status of a target population. J Commun Health. 1982;7(4):292–309.
Drescher K, Becher H. Estimating the generalized impact fraction from case–control data. Biometrics. 1997;53(3):1170–6.
Taguri M, Matsuyama Y, Ohashi Y, Harada A, Ueshima H. Doubly robust estimation of the generalized impact fraction. Biostatistics. 2012;13(3):455–67.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Dahlqwist, E., Zetterqvist, J., Pawitan, Y. et al. Model-based estimation of the attributable fraction for cross-sectional, case–control and cohort studies using the R package AF . Eur J Epidemiol 31, 575–582 (2016). https://doi.org/10.1007/s10654-016-0137-7
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10654-016-0137-7