The unsystematic variance for the repeated measures design
Now you can easily calculate the unsystematic variance for the repeated measures design, also called the error term.
This exercise is part of the course
Intro to Statistics with R: Repeated measures ANOVA
Exercise instructions
- Calculate the unsystematic sum of squares for the repeated measures design
ss_rm
. This is just the unsystematic sum of squares of the between-groups design reduced by the stable subjects sum of squares. - Calculate the error term (the mean squares) of the repeated measures design
ms_rm
. You first have to define the degrees of freedomdf
.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
## wm, ss_sa, and ss_subjects are available in your workspace
# Unsystematic sum of squares
ss_rm <-
# Define the degrees of freedom
df <-
# Calculate the mean squares (variances)
ms_rm <-