nhanes | R Documentation |
Selected variables from the NHANES 2009-2012 data collected by the US National Center for Health Statistics (NCHS).
data(nhanes)
Subject's identifier
Gender (sex) of study participant coded as male or female
Age in years at screening of study participant. Note: Subjects 80 years or older were recorded as 80.
Categorical variable derived from age with levels 0-9, 10-19, ... 70+
Educational level of study participant Reported for participants aged 20 years or older.
Marital status of study participant. Reported for participants aged 20 years or older.
How many rooms are in home of study participant (counting kitchen but not bathroom). 13 rooms = 13 or more rooms.
One of Home, Rent, or Other indicating whether the home of study participant or someone in their family is owned, rented or occupied by some other arrangement.
Weight in kg
Standing height in cm. Reported for participants aged 2 years or older.
Body mass index. Reported for participants aged 2 years or older.
Combined systolic blood pressure reading.
Combined diastolic blood pressure reading
Study participant has sleep trouble
Study participant told by a doctor or health professional that they have diabetes. Reported for participants aged 1 year or older.
Age of study participant when first told they had diabetes.
Self-reported number of days where participant felt down, depressed or hopeless. Reported for participants aged 18 years or older. One of None, Several, Majority (more than half the days), or AlmostAll.
Self-reported number of hours study participant usually gets at night on weekdays or workdays. Reported for participants aged 16 years and older.
Study participant currently smokes cigarettes regularly. Reported for participants aged 20 years or older
Age study participant first started to smoke cigarettes fairly regularly. Reported for participants aged 20 years or older.
A data frame with 10,000 rows and 20 variables.
Selected variables from the NHANES data in the NHANES
R package; https://cran.r-project.org/web/packages/nhanesA/nhanesA.pdf.
It is originally assembled by Michelle Dalrymple of Cashmere High School and Chris Wild of
the University of Auckland, New Zealand for use in teaching statistics.
data(nhanes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.