| nhis | R Documentation |
Demographic variables from a U.S. national household survey
data(nhis)
A data frame with 3,911 observations on the following 16 variables.
IDIdentification variable
stratumSample design stratum
psuPrimary sampling unit, numbered within each stratum (1,2)
svywtsurvey weight
sexGender (1 = male; 2 = female)
ageAge, continuous
age_rRecoded age (3 = 18-24 years; 4 = 25-44 years; 5 = 45-64 years; 6 = 65-69 years; 7 = 70-74 years; 8 = 75 years and older)
hispHispanic ethnicity (1 = Hispanic; 2 = Non-Hispanic)
maritalMarital status (1 = Separated; 2 = Divorced; 3 = Married; 4 = Single/never married; 5 = Widowed; 9 = Unknown marital status)
parentsParent(s) of sample person present in the family (1 = Mother, no father; 2 = Father, no mother; 3 = Mother and father; 4 = Neither mother nor father)
parents_rParent(s) of sample person present in the family recode (1 = Yes; 2 = No)
educEducation (1 = 8th grade or less; 2 = 9-12th grade, no high school diploma; 3 = High school graduate; 4 = General education development (GED) degree recipient; 5 = Some college, no degree; 6 = Associate's degree, technical or vocational; 7 = Associate's degree, academic program; 8 = Bachelor's degree (BA, BS, AB, BBA); 9 = Master's, professional, or doctoral degree)
educ_rEducation recode (1 = High school, general education development degree (GED), or less; 2 = Some college; 3 = Bachelor's or associate's degree; 4 = Master's degree & higher)
raceRace (1 = White; 2 = Black; 3 = Other)
respRespondent (0 = nonrespondent; 1 = respondent)
The National Health Interview Survey (NHIS) is used to monitor health conditions in the U.S.
Data are collected through personal household interviews. Only demographic variables are included in this subset which was collected in 2003. The nhis data set contains observations for 3,911 persons. The file contains only persons 18 years and older.
National Health Interview Survey of 2003 conducted by the U.S. National Center for Health Statistics. https://www.cdc.gov/nchs/nhis.htm
nhis.large
data(nhis)
str(nhis)
table(nhis$sex,nhis$age_r)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.