National Health and Nutrition Examination Survey

NHANES Tutorials

The Continuous NHANES Tutorials have been updated as of December 2019.
Changes include:

  • adding a new module 5, which describes measures that can be used to assess the reliability of estimates
  • providing sample code to replicate estimates from an NCHS data brief, using SUDAAN, SAS survey, Stata, and R software
  • expanding coverage of some topics such as identifying skip patterns, combining multiple survey cycles, and analyzing NHANES data with Stata or R software
  • updating the content to describe more recent survey cycles and the current NHANES website

Modules 6-10 are under construction and are subject to change.

Page Description

Module 1: Datasets

The NHANES website is the most important data source and analytical resource for all data users. The website contains both historic and current datasets, and covers a wide range of critical topics. This module describes how Continuous NHANES data and documentation are structured and organized.

Module 2: Sample Design

NHANES uses a complex, multistage, probability sampling design. Researchers need to take this into account in their analyses by appropriately specifying the sampling design parameters. This module provides an overview of the sample design parameters in NHANES.

Module 3: Weighting

This module addresses why weights are created and how they are calculated, the importance of weights in making estimates that are representative of the U.S. civilian non-institutionalized population, how to select the appropriate weight to use in your analysis, and when and how to construct weights when combining survey cycles.

Module 4: Variance Estimation

This module introduces the basic concepts of variance (sampling error) estimation for NHANES data. You will learn how the complex survey design of NHANES and clustering of the data affect variance estimation, which methods are appropriate to use when calculating variance for NHANES data, how to properly calculate the variance for subgroups of interest, and how to specify the sampling design parameters in common statistical software packages (SUDAAN, SAS, Stata, and R).

Module 5: Reliability of Estimates

Analysts must evaluate the statistical reliability of estimates to determine whether the results are appropriate for their intended research objective. This module describes a number of measures that can be used to evaluate the reliability of an estimate, including the effective sample size, the design effect, the width and relative width of its confidence interval, the degrees of freedom, and the relative standard error.

Sample Code

This page contains all the sample code and datasets used in the Continuous NHANES tutorial, organized by module and then task. 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.

This page also contains code examples that demonstrate the application of tutorial concepts by replicating the estimates in selected NCHS publications. These programs are available for SAS-callable SUDAAN, SAS Survey procedures, Stata, and R.

Software Tips

This page contains tips for using SUDAAN, SAS Survey, Stata, and R software to analyze NHANES data.

Click here for Modules 6 - 10, which are currently under construction.

To report problems or comments, use the NHANES Web Tutorial email. Do not direct questions to this email address, as it can only receive feedback and we will not be able to reply.

Page last reviewed: 2/21/2020