Publisher review:Two-way repeated measures ANOVA - Two-way repeated measures ANOVA, for designs with two within-subjects variables. function stats = rm_anova2(Y,S,F1,F2,FACTNAMES)
Two-factor, within-subject repeated measures ANOVA. For designs with two within-subject factors.
Parameters:Y dependent variable (numeric) in a column vectorS grouping variable for SUBJECTF1 grouping variable for factor #1F2 grouping variable for factor #2F1name name (character array) of factor #1F2name name (character array) of factor #2
Y should be a 1-d column vector with all of your data (numeric).The grouping variables should also be 1-d numeric, each with same length as Y. Each entry in each of the grouping vectors indicates the level # (or subject #) of the corresponding entry in Y.Returns:stats is a cell array with the usual ANOVA table:Source / ss / df / ms / F / pNotes:Program does not do any input validation, so it is up to you to make sure that you have passed in the parameters in the correct form:Y, S, F1, and F2 must be numeric vectors all of the same length.There must be at least one value in Y for each possible combination of S, F1, and F2 (i.e. there must be at least one measurement per subject per condition).
If there is more than one measurement per subject X condition, then the program will take the mean of those measurements. Requirements: · MATLAB Release: R13SP1 · Statistics Toolbox
Two-way repeated measures ANOVA is a Matlab script for Statistics and Probability scripts design by Aaron Schurger.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Operating system:Windows / Linux / Mac OS / BSD / Solaris