Practice: t-test

In this exercise, you will use the t-test and Wilcoxon test to compare the Examination rates across the two groups. This exercise does not count toward your grade. It is just for practice!

Exercise:

  • Use the variable Agriculture in the built-in dataset swiss to separate the dataset into two groups: one with the Agriculture variable below its median and another with Agriculture above the median. 
  • Use the t-test and Wilcoxon test to compare the Examination rates across the two groups. 
  • Do the tests agree with each other?
Last modified: Friday, December 16, 2022, 12:30 PM