Session Ready
Exercise

Mauchly's test

To check the sphericity assumption, you can perform Mauchly's test. Coding Mauchly's test in R yourself is beyond the scope of this introductory statistics course, so the necessary code is provided for you.

To do the test, you'll make use of a function called mauchly.test(). The first argument has to be an object of class SSD or mlm.

For the working memory example, you first need to define an object of class SSD or mlm. In order to do this, you first define a variable iq with columns containing the values for each condition, then make an mlm object using iq and the lm() function. Finally, you provide mlm as an input to the mauchly.test().

If Mauchly's test yields a significant result, then the sphericity assumption is violated. In this case, the two most popular adjustments are Greenhouse-Geisser and Huyn-Feldt.

Instructions
100 XP

The code is already provided. Just submit it and interpret the results.