Simple RM/Mixed ANOVA for any design

Simple Function for all RM or Mixed ANOVAs
1.6K Downloads
Updated 7 Nov 2017

View License

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.

Cite As

Laurent Caplette (2024). 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
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.0.0

Corrected minor bug in the case of 1 within-subject factor.
Changed title (automatically changes back to first title every update)

1.0.0.0

Changed title and description.
Changed title