R/Econ_impact_poll.R

#' SIMULATED data from an economic outlook poll
#'
#' @docType data
#'
#' @format 10,000 rows with three variables: `age`, `income`, `pessimism`
#'
#' Data from a simple SIMULATION of people's pessimism about the economic state
#' based on age group and income group. Nothing about the real world should be
#' inferred from these data; they are merely to illustrate adjusting for covariates.
#'
#' @source The simulation is from "Statistical Modeling: A Fresh Approach" (2/e). Code for
#' it is in the file `system.file("SM2-simulations.R", package="LSTbook")`
"Econ_outlook_poll"

Try the LSTbook package in your browser

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

LSTbook documentation built on April 3, 2025, 6:02 p.m.