forked from OpenIntroStat/openintro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
data-env_regulation.R
32 lines (32 loc) · 1.34 KB
/
data-env_regulation.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#' American Adults on Regulation and Renewable Energy
#'
#' Pew Research conducted a poll to find whether American adults support
#' regulation or believe the private market will move the American economy
#' towards renewable energy.
#'
#' The exact statements being selected were: (1) Government
#' regulations are necessary to encourage businesses and consumers to rely more
#' on renewable energy sources. (2) The private marketplace will ensure that
#' businesses and consumers rely more on renewable energy sources, even without
#' government regulations.
#'
#' The actual sample size was 1012. However, the original data were not from a
#' simple random sample; after accounting for the design, the equivalent sample
#' size was about 705, which was what was used for the data set here to keep
#' things simpler for intro stat analyses.
#'
#' @name env_regulation
#' @docType data
#' @format A data frame with 705 observations on the following variable.
#' \describe{
#' \item{statement}{There were three possible outcomes for each person:
#' \code{"Regulations necessary"}, \code{"Private marketplace will ensure"},
#' and \code{"Don't know"}.}
#' }
#' @source
#' \url{https://www.pewresearch.org/science/2017/05/16/public-divides-over-environmental-regulation-and-energy-policy/}
#' @keywords datasets
#' @examples
#'
#' table(env_regulation)
"env_regulation"