Just as for fixed factor ANOVA (see ANOVA using Regression), we can also perform Repeated Measures ANOVA using regression. This is particularly useful when there is a between-subjects factor whose levels have unequal size (unbalanced model).
Topics
Reference
Howell, D. C. (2010) Statistical methods for psychology (7th ed.). Wadsworth, Cengage Learning.
https://labs.la.utexas.edu/gilden/files/2016/05/Statistics-Text.pdf