CDC en Español

Search:
National Center for Health Statistics  Monitoring the Nation's Health

Continuous NHANES Web Tutorial

  • Email this page

Sample Code & Datasets

Below is a listing of all the sample code and datasets used in the Continuous NHANES tutorial. They are organized by module and then task. If a module or task is not listed it is because it did not have a related program. Programs are available as SAS programs (i.e. SAS Survey Procedures and SAS-callable SUDAAN)  and Stata programs. The datasets are SAS or Stata datasets for Windows.

These datasets are intended to be used with the tutorial only, as they may contain a subset of the variables available. If you wish to conduct your own analyses, please download the most current and complete datasets from the NHANES website.

Program code used in this tutorial follow procedures available in SAS 9.1, SAS 8.0 and SUDAAN 9.0 or SUDAAN 8.0, and Stata/SE 10.0.

These programs use variable formats listed in the Tutorial Formats page. You may need to format the variables in your dataset the same way to reproduce results presented in the tutorial.

A regular left-click may not download the SAS datasets or SAS code correctly. Your browser may try to open and attempt to interpret the contents of the dataset or program. If this happens, right-click the link and save the dataset or program to your hard drive. After it  has downloaded, the use your statistical software program to open the dataset to view it.

 

Download Data Files

 

Append & Merge Datasets

Clean & Recode Data

Format & Label Variables

Save Datasets

Descriptive Statistics

Hypothesis Testing


Age Standardization and Population Counts

 

Linear Regression

Logistic Regression

Page Last Modified: April 13, 2009

Additional Resources

National Center for Health Statistics
3311 Toledo Road
Hyattsville, MD 20782
Phone: 1-866-441-NCHS (6247)
For data inquiries, use
nchsquery@cdc.gov

 

Problems or comments about the Tutorial?
Email the Tutorial Team: NHANESWebTutorial@cdc.gov

Safer Healthier People

Centers for Disease Control and Prevention, 1600 Clifton Rd, Atlanta, GA 30333, U.S.A
Tel: (404) 639-3311 / Public Inquiries: (404) 639-3534 / (800) 311-3435