get_demo: NHANES demographic data retrieval.

Description Usage Arguments Value References Examples

Description

get_demo returns an abridged National Health and Nutrition Examination Survey (NHANES) demographic data set for a given year.

Usage

1
get_demo(year)

Arguments

year

year combination of data set to retrieve ... must be one of the following:

  • "2005/2006"

  • "2007/2008"

  • "2009/2010"

  • "2011/2012"

  • "2013/2014"

Value

Object of class data.frame containing a modified NHANES demographic data set for a specified year. The complete NHANES demographic data set contains several more variables than are necessary for computing HEI scores. In fact, the only variable contained in the returned data set (in addition to an NHANES unique sequence identifier for each participant) is not, strictly speaking, even required itself, but becomes relevant if data sets from multiple separate NHANES iterations are concatenated, specifically:

References

https://www.cdc.gov/nchs/nhanes/nhanes_questionnaires.htm

Examples

1
2
3
4
## Not run: 
get_demo("2009/2010")

## End(Not run)

vpnagraj/hei documentation built on May 3, 2019, 6:41 p.m.