R/data-cdc.R

#' cdc
#'
#' A dataset from the 2000 Behavioral Risk Factors Surveillance System (BRFSS)
#' conducted by the US Centers for Disease Control and Prevention used to
#' illustrate inference on demographic data.
#'
#' @name cdc
#' @docType data
#' @format A dataframe with 20,000 rows and 9 variables:
#' \describe{
#'    \item{\code{genhlth}}{Factor with levels \code{excellent}, \code{very good}
#'     \code{good}, \code{fair}, \code{poor}}
#'    \item{\code{exerany}}{Numeric vector; 1 if the respondent exercised in the
#'    past month and 0 otherwise.}
#'    \item{\code{hlthplan}}{Numeric; 1 if the respondent has some form
#'    of health coverage and 0 otherwise.}
#'    \item{\code{smoke100}}{Numeric; 1 if the respondent has smoked at least 100
#'    cigarettes in their entire life and 0 otherwise.}
#'    \item{\code{height}}{Numeric; respondent's height in inches.}
#'    \item{\code{weight}}{Numeric;  respondent's weight in pounds.}
#'    \item{\code{wtdesire}}{Numeric; respondent's desired weight in pounds.}
#'    \item{\code{age}}{Numeric;  respondent's age in years.}
#'    \item{\code{gender}}{Factor with two levels \code{m} \code{f}}
#'    }
#' @source("https://www.cdc.gov/brfss/index.html")
#'
"cdc"
OpenIntroStat/openintro documentation built on Jan. 2, 2025, 6:15 a.m.