*! version 1.0 1 May Dec2022
help getnhs

Title

getnhs -- Download NHANES data

Syntax

getnhs year DATASET

year refers to the year of NHANES data;
DATASET refers to the name of the dataset, such as DEMO.

Description

getnhs download NHANES data (1999 onwards) into Stata format.

Example: Basic use

The following syntax downloads 2010 DEMO data (demographic data)

. getnhs 2010 DEMO

The following syntax downloads 2016 diabetes questionnaire data

. getnhs 2016 DIQ

For the 2017-2020 data, the name of the dataset has a prefix P-. So the syntax is slightly different. The following syntax downloads 2017-2020 diabetes questionnaire data

. getnhs 2019 P_DIQ

Author

Zumin Shi,
Department of Human Nutrition,
College of Health Sciences, QU Health,
Qatar University, Qatar.
(zumin.shi@gmail.com)