In this case study, and in the subsequent mini homework, you will work with the 2016 General Social Survey (GSS). The data can be found in the \data
folder of your assignment repository. This is an excerpt from the 2016 GSS containing only the variables that will be used for these two assignments. We’re not distributing the entire dataset in order to keep the size of the dataset reasonable.
You can load the data with
gss16 <- read_csv("data/gss16_excerpt.csv")
Some of the questions ask about conditions for inference. Note that the GSS employs random sampling.
Go to the #assignment-links channel on Slack, click on the link, and accept the assignment.
First focus is Americans’ “belief” in evolution. The GSS asks
Human beings, as we know them today, developed from earlier species of animals. (Is that true or false?)
The responses to this question are stored in the variable called EVOLVED
.
NA
values for the EVOLVED
variable. How many observations are in this data frame?prop.test
function to build this interval.prop.test(x = [number of successes], n = [sample size], conf.level = 0.95)
Check / no check