Simple RM/Mixed ANOVA for any design
Updated 7 Nov 2017
Performing repeated-measures or mixed ANOVAs in MATLAB can be quite tedious. Once you have mastered Wilkinson notation and the rather unusual procedures that the MATLAB fitrm and ranova demand, you still have to create multiple tables each time. There is always the possibility of using functions available on MATLAB Central, but you're often not sure if the code is okay, and these functions don't allow to execute designs with more than two factors.
The present function builds on top of the existing MATLAB functions but only asks for a single matrix as input (or two if you also have between-subjects factors). It allows to perform repeated-measures and mixed ANOVAs with any number of factors. The only caveats: it cannot be used (for now) for partial models in which not all interactions are modelled, or to model covariates.
The function is quite simple and should work fine on all MATLAB versions in which the present ANOVA architectures are available (fitrm and ranova functions; requires Statistics Toolbox). However, this function has only been tested on MATLAB 2014a and 2015a for now; as such, it should be considered a beta version.
Laurent Caplette (2023). Simple RM/Mixed ANOVA for any design (https://www.mathworks.com/matlabcentral/fileexchange/64980-simple-rm-mixed-anova-for-any-design), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.