R/nhanes_sub.R

#' A subset of the National Health and Nutrition Examination Survey (2015 - 2016)
#'
#' A subset of the Income data set from the US American National Health and Nutrition Examination Survey (NHANES)
#' collected by the Centers for Disease Control and Prevention (CDC) and
#' the National Center for Health Statistics (NCHS) for 2015-2016. Four variables were dropped:
#' \code{seqn}, the respondent sequence number, as the information was included into the rownames;
#' \code{indfmmpi} and \code{indfmmpc}, the Family monthly poverty level index/category as these
#' variables are too overcomplex for the illustrative purpose of the data and \code{inq300},
#' the response to the question whether the family has more than 20000 dollars of savings -
#' this information was merged into the variable \code{ind310}, the total savings of the family.
#' This gave several new categories for \code{ind310}: individuals reporting savings below 20,000 USD
#' (\code{inq300 == 2}), but reporting "refused" or "don't know" to the detailed question of the total savings
#' \code{ind310}, get the new category 6 "0 - 20,000 USD". The individuals reported to have more than 20,000 USD savings
#' (\code{inq300 == 1}), get the new category 7 "20,001 USD and over". Individuals reporting "refused" or
#' "don't know" to \code{inq300} (more than 20000 USD savings?) get the new category 8 "0 USD and over".
#' In \code{ind235}, the monthly family income, missing values are made a new category "0 USD and over".
#' The variable \code{inq320} was transformed into a factor.
#' "Refused" and "Don't know" responses where changed to \code{NA}.
#' The Website (\url{https://wwwn.cdc.gov/Nchs/Nhanes/2015-2016/INQ_I.htm}) gives the following Analytic notes:
#' "The income questions were asked as part of household interview,
#' the interview sample weights may be used in the analysis for data in this section.
#' However, if the data is joined with other data from the Mobile Examination Center (MEC),
#' the MEC exam weights should be used. Please refer to the NHANES Analytic Guidelines
#' and the on-line NHANES Tutorial for further details on the use of sample weights
#' and other analytic issues. Both of these are available on the NHANES website."
#'
#' @format A data frame with 9971 rows and 12 variables:
#' \describe{
#' \item{inq020}{Income from wages/salaries? 1 = Yes, 2 = No}
#' \item{inq012}{Income from self employment? 1 = Yes, 2 = No}
#' \item{inq030}{Income from Social Security or Railroad Retirement? 1 = Yes, 2 = No}
#' \item{inq060}{Income from other disability pension? 1 = Yes, 2 = No}
#' \item{inq080}{Income from retirement/survivor pension? 1 = Yes, 2 = No}
#' \item{inq090}{Income from Supplemental Security Income? 1 = Yes, 2 = No}
#' \item{inq132}{Income from state/county cash assistance? 1 = Yes, 2 = No}
#' \item{inq140}{Income from interest/dividends or rental? 1 = Yes, 2 = No}
#' \item{inq150}{Income from other sources? 1 = Yes, 2 = No}
#' \item{ind235}{Monthly family income? 1 = 0 - 399 USD, 2 = 400 - 799 USD, 3 = 800 - 1,249 USD, 4 = 1,250 - 1,649 USD, 5 = 1,650 - 2,099 USD, 6 = 2,100 - 2,899 USD, 7 = 2,900 - 3,749USD, 8 = 3,750 - 4,599USD, 9 = 4,600 - 5,399 USD, 10 = 5,400 - 6,249 USD, 11 = 6,250 - 8,399 USD, 12 = 8,400 USD and over, 13 = 0 USD and over}
#' \item{ind310}{Total savings/cash assets for the family? 1 = 0 - 3,000 USD, 2 = 3,001 - 5,000 USD, 3 = 5,001 - 10,000, 4 = 10,001 - 15,000 USD, 5 = 15,001 - 20,000, 6 = 0 - 20,000 USD, 7 = 20,001 USD and over, 8 = 0 USD and over}
#' \item{inq320}{How do you get to the grocery store?, 1 = In my car, 2 = In a car that belongs to someone I live with, 3 = In a car that belongs to someone who lives elsewhere, 4 = Walk, 5 = Ride bicycle, 6 = Bus, subway or other public transit, 7 = Taxi or other paid driver, 8 = Someone else delivers groceries, 9 = Other, 66 = No usual mode of traveling to store, 77 = Refused, 99 = Don't know}
#' }
#' @references
#' Centers for Disease Control and Prevention (CDC).
#' National Center for Health Statistics (NCHS).
#' National Health and Nutrition Examination Survey Data.
#' Hyattsville, MD: U.S. Department of Health and Human Services, Centers for Disease Control and Prevention.
#' Variables descriptions at \url{https://wwwn.cdc.gov/Nchs/Nhanes/2015-2016/INQ_I.htm}
#' @source Website of the Centers for Disease Control and Prevention:
#' \url{https://wwwn.cdc.gov/Nchs/Nhanes/2015-2016/INQ_I.XPT}
"nhanes_sub"

Try the hmi package in your browser

Any scripts or data that you put into this service are public.

hmi documentation built on Oct. 23, 2020, 7:31 p.m.