Interpreting the test
What is your conclusion regarding the association between sex and support for the death penalty? Recall that this code calculates the p-value:
# Compute two-tailed p-value
null %>%
summarize(pval = 2 * mean(stat <= d_hat))
This exercise is part of the course
Inference for Categorical Data in R
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
