R/rd-voteincome.R

#' @importFrom tibble tibble
NULL

#' Sample Turnout and Demographic Data from the 2000 Current Population Survey
#'
#' A data set on turnout and demographic data from the 2000 Current Population Survey. This is a basic
#'  port of the \code{voteincome} data from the \pkg{Zelig} package.
#'
#' @format A data frame with 1500 observations on the following 7 variables.
#' \describe{
#' \item{\code{state}}{a character variable for the state, either Arkansas (AK) or South Carolina (SC)}
#' \item{\code{year}}{a numeric constant for the year (2000)}
#' \item{\code{vote}}{a dummy variable for whether the person voted (1) or did not vote}
#' \item{\code{income}}{a numeric variable for income ranging from 4 (less than $5000) to 17 (greater than $75000)}
#' \item{\code{education}}{a numeric variable for educational attainment
#' ranging from 1 (less than high school education) to 4 (more than college education)}
#' \item{\code{age}}{a numeric variable for the respondent's age in years,ranging from 18 to 85}
#' \item{\code{female}}{a dummy variable for whether the respondent is a woman (1) or a man (0)}
#' }
#'
#' @details Data come from the 2000 Current Population Survey by way of the \pkg{Zelig} package. Data should
#' not be used for inferential applications, only for pedagogical purposes. See the appropriate CPS codebook
#' for more information on variable coding (especially for income and education). In all likelihood, age is
#' right-censored as well.
#'
"voteincome"

Try the stevedata package in your browser

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

stevedata documentation built on April 4, 2025, 1:39 a.m.