In this lab you will use the following three packages:
library(tidyverse)
library(oilabs)
library(infer)
In lecture we’ve gone through several examples of hypothesis tests on the blackboard. Now you’ll get the chance to get your hands on the data and construct those tests.
promote
data set,
infer
.millenials
data set,
curry
data set,
How would you expect the plots of your null distribution to change if reps
were increased to 1000? Give it a try.
In which of the examples above would you be comfortable using the Normal curve to describe the null distribution?
survey141
data and select one or two columns to study. Conduct a hypothesis test in the form that you’ve seen in this lab and be explicit about each of the 5 steps that you went through for previous examples. Additionally, please interpret the p-value: what does this mean in the context of our sample of Reedies and the population of Reedies in general?Note that you may need to dust off your dplyr
skills in order work with variables that have only two levels. One approach is to filter
the data but the other is to use fct_recode
or fct_collapse
in the forcats
package.