Practice calculating p-values
In the original dataset, 87.5% of the men were promoted and 58.3% of the women were promoted.
Consider a situation where there are 24 men, 24 women, and 35 people are still promoted. But in this new scenario, 75% of the men are promoted and 70.8% of the women are promoted. Does the difference in promotion rates still appear to be statistically significant? That is, could this difference in promotion rates have come from random chance?
You'll analyze these new data, contained in disc_new
, using the same permutation algorithm from before.
The disc_perm
and disc_perm_new
datasets are available in your workspace.
Cet exercice fait partie du cours
Foundations of Inference in R
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
# Recall the original data
disc %>%
count(sex, promote)
# Tabulate the new data
___