Purpose
NHANES data files are available for download from the website as SAS transport files (.XPT). To use these files you need to create a directory to save them, download the data files and documentation, and then extract or import the datasets.
Task 1: Create a directory
You will create a directory to save your data files, documentation, and extracted SAS datasets. This will help keep your transport files and datasets organized.
- Key Concepts about Creating a Directory for NHANES Tutorial
- How to Create a Directory for NHANES Tutorial
Task 2: Download data files and documentation
You need the data files to create your analytic dataset, and you need the documentation for reference as you continue your analysis.
- Key Concepts about Downloading Data Files and Documentation
- How to Download Data Files and Documentation
Task 3: Extract or Import Datasets
After downloading the SAS transport files, you will need to extract or import them as datasets. Transport files are not usable without completing this task.
- Key Concepts about Extracting and Copying NHANES Data Files as Permanent Libraries
- How to Extract and Copy NHANES Data Files as Permanent Libraries in SAS
- How to Import and Save NHANES Data Files 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