powered by
Data for Example 7.20
Stress
A data frame/tibble with 12 observations on two variables
short term memory score before being exposed to a stressful situation
short term memory score after being exposed to a stressful situation
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
diff <- Stress$prestress - Stress$poststress qqnorm(diff) qqline(diff) t.test(diff) if (FALSE) { wilcox.test(Pair(Stress$prestress, Stress$poststress)~1, data = Stress) }
Run the code above in your browser using DataLab