R/data-family_college.R

#' Simulated sample of parent / teen college attendance
#'
#' A simulated dataset based on real population summaries.
#'
#'
#' @name family_college
#' @docType data
#' @format A data frame with 792 observations on the following 2 variables.
#' \describe{
#'   \item{teen}{Whether the teen goes to \code{college} or \code{not}.}
#'   \item{parents}{Whether the parent holds a college \code{degree} or \code{not}.}
#' }
#' @source Simulation based off of summary information provided at
#' \url{https://eric.ed.gov/?id=ED460660}.
#' @keywords datasets
#' @examples
#'
#' library(dplyr)
#'
#' family_college |>
#'   count(teen, parents)
"family_college"
OpenIntroStat/openintro documentation built on June 4, 2024, 4:19 a.m.