Purpose
An NHANES dataset for analysis will typically include data from 2 or more years and variables from more than one component. You will append to combine the years of data and merge to include variables from different components.
Task 1: Append NHANES Data
NHANES data files are released for public use in 2-year groupings. You may wish to combine multiple years, add additional observations, or combine different years of data files on the same variables. The process of combining years is called appending.
- Key Concepts about Appending Data in NHANES
- How to Append NHANES Data in SAS
- How to Append NHANES Data in Stata
- Download Sample Code and Dataset
Task 2: Merge NHANES Data
Data files are organized by their collection method, which can fall under one of four components: Demographic, Examination, Laboratory, and Questionnaire. To allow for timelier releases, different components of the data files are usually released at different times as they are completed. Joining the components of the data files is called merging.
- Key Concepts about Merging Data in NHANES
- How to Merge NHANES Data in SAS
- How to Merge NHANES Data in Stata
- Download Sample Code and Dataset
Contact Us:
- National Center for Health Statistics
3311 Toledo Rd
Hyattsville, MD 20782 - 1 (800) 232-4636
- cdcinfo@cdc.gov