Session Ready
Exercise

ANOVA in R

ANOVA in R is usually done with the aov() function.

If you completed the previous course in this series, you are already familiar with this function and know that it gives you the ANOVA model with the F-ratio and p-value. The latter values are identical to those calculated in the previous exercises.

Instructions
100 XP
  • Fit an ANOVA model called model using the aov() function. Because you're using repeated measures, you have to add a term Error(wm$subject / wm$condition). This term tells R that you need a special error term since you are working in a repeated measures design and the error term differs. So you add this term, saying that the subjects are measured repeatedly across conditions.
  • Make a summary of the model using the summary() function.