Foundations of Inference in R
Jo Hardin
Instructor
# Calculate the p-value
opp_perm %>%
summarize(pvalue =
mean(stat <= diff_orig))
# A tibble: 1 × 1
pvalue
<dbl>
1 0.007
Study was randomized (i.e. individuals were randomly assigned the choices)
Nothing systematically different about participants in treatment and control groups
Therefore, any difference in buying rates is due to the options given (i.e. being reminded to save)
150 individuals in the sample were not randomly sampled from all people
In order to generalize, we need more information about the students and who they represent
Foundations of Inference in R