CDC en Español

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

NHANES II Web Tutorial

  • Email this page

Keep and Merge Files

line Go to Continuous NHANES module Go to NHANES III module You are at NHANES II module Go to NHANES I module

Purpose

An NHANES II dataset for analysis will typically include data from at least two data files. You will need to keep and merge data to include variables from different data files.

 

Task 1: Keep NHANES II Data

NHANES II data files were released by their collection method or component. Many of these are very large data files with many variables.  Most analysts will only need a few selected variables.  You will likely wish to keep only those variables when you create your analytic dataset. This process uses a SAS option statement called keep.

 

Task 2: Merge NHANES II Data

The NHANES II data files are organized by collection method or component, such as Physician's Examination or Hematology and Biochemistry. Joining the components of the data files uses a SAS statement called merge.

 

Page Last Modified: March 25, 2008

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