N-way repeated measures ANOVA

Bug-fixed version of teg_repeated_measures_ANOVA.

Runs a repeated measures ANOVA, for all possible interactions.

Usage: O = teg_repeated_measures_ANOVA(M, levels, varnames)

with M an observation x nested variable-combinations matrix, levels a vector with the number of levels per variable (from highest to lowest level of nesting) and varnames a cell array of strings. An M-sized matrix of trial numbers N can be added to M, as M = [M N], for correct weighting to be applied.

Zip.

The F-tests for significant effects are reported, together with other statistical measures including partial eta squared estimates of effect size.