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
. 2024 Apr 15:2024:baae028.
doi: 10.1093/database/baae028.

nhanesA: achieving transparency and reproducibility in NHANES research

Affiliations

nhanesA: achieving transparency and reproducibility in NHANES research

Laha Ale et al. Database (Oxford). .

Abstract

The National Health and Nutrition Examination Survey provides comprehensive data on demographics, sociology, health and nutrition. Conducted in 2-year cycles since 1999, most of its data are publicly accessible, making it pivotal for research areas like studying social determinants of health or tracking trends in health metrics such as obesity or diabetes. Assembling the data and analyzing it presents a number of technical and analytic challenges. This paper introduces the nhanesA R package, which is designed to assist researchers in data retrieval and analysis and to enable the sharing and extension of prior research efforts. We believe that fostering community-driven activity in data reproducibility and sharing of analytic methods will greatly benefit the scientific community and propel scientific advancements. Database URL: https://github.com/cjendres1/nhanes.

PubMed Disclaimer

Conflict of interest statement

R.G. consults broadly in the pharmaceutical and biotech industries. He owns shares or options in a number of publicly traded and private companies. T.F.S. owns shares in a publicly traded company.

Figures

Figure 1.
Figure 1.
Number of participants by recorded ethnicity and gender by cycle, excluding the pre-pandemic (2017–March 2020) cycle.
Figure 2.
Figure 2.
Panel (a) shows the raw data, where both gender and ethnicity are encoded as integers. Panel (b) shows the translated data.
Figure 3.
Figure 3.
Questions BPQ_020 and BPQ_030 from table BPQ_D.
Figure 4.
Figure 4.
Workflow for ensuring transparent and reproducible research: (i) authors use Rmarkdown and R files, managed with Git version control for organization and collaboration. The nhanesA package facilitates NHANES access. Git and GitHub facilitate this by archiving and source code control. (ii) Work is committed, pushed and made public on GitHub in the form of Rmarkdown and R files. (iii) Anyone who wants to reproduce the work can fork or clone the repository to reproduce or expand upon the work. External users can access the NHANES database in the same way as the original authors. Contributions or extensions can be integrated via pull requests and subsequent merging.
None
None
None
None
None
None
None

References

    1. CDC . National Health and Nutrition Examination Survey. https://www.cdc.gov/nchs/nhanes/index.htm (16 February 2024, date last accessed).
    1. NIH . Library of Medicine at the National Institutes of Health. https://pubmed.ncbi.nlm.nih.gov (22 February 2024, date last accessed).
    1. Zipf G., Chiappa M., Porter K.S. et al.. (2013) National Health and Nutrition Examination Survey: Plan and Operations, 1999-2010. Vital and health statistics Ser 1, Programs and collection procedures, pp. 1–37. - PubMed
    1. Liu S.H., Kuiper J.R., Chen Y. et al. (2022) Developing an exposure burden score for chemical mixtures using item response theory, with applications to PFAS mixtures. Environ. Health Perspect., 130, 117001–11. - PMC - PubMed
    1. Rigatti S.J. and Stout R. (2020) Activity level as a mortality predictor in a population sample after typical underwriting exclusions and laboratory scoring. J. Insur. Med., 48, 124–135. - PubMed

MeSH terms