Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2016 Jun;31(6):575-82.
doi: 10.1007/s10654-016-0137-7. Epub 2016 Mar 18.

Model-based estimation of the attributable fraction for cross-sectional, case-control and cohort studies using the R package AF

Affiliations

Model-based estimation of the attributable fraction for cross-sectional, case-control and cohort studies using the R package AF

Elisabeth Dahlqwist et al. Eur J Epidemiol. 2016 Jun.

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.

Keywords: Attributable fraction; Attributable risk; Confounder-adjusted; Public health; R package; Regression model; Statistical software.

PubMed Disclaimer

References

    1. Biostatistics. 2012 Jul;13(3):455-67 - PubMed
    1. Biometrika. 2010 Sep;97(3):713-726 - PubMed
    1. Ann Epidemiol. 2015 Mar;25(3):147-54 - PubMed
    1. Am J Epidemiol. 1977 Mar;105(3):281-9 - PubMed
    1. Biom J. 2006 Aug;48(5):805-19 - PubMed

LinkOut - more resources