Foundations of Inference in R
Jo Hardin
Instructor
Difference in proportions: $\hat{p} - p$
Ratio: $\dfrac{\hat{p}}{p}$
Interested in whether observed statistic is different from values obtained by shuffling
disc_perm %>%
summarize(q.05 = quantile(diff_perm, p = 0.05),
q.95 = quantile(diff_perm, p = 0.95))
# A tibble: 1 × 2
q.05 q.95
<dbl> <dbl>
1 -0.2083333 0.2083333
Foundations of Inference in R