CalcRmAnova.m
CellSum, CellGroupSum, factorstructure, betweenfactorstructure,...
betweensubjectcell, nroffactors, nrofbetweenfactors, nrofsubjects, SubjectQS,...
SubjectDf, TotQSf, SubjectQSf)'
calculates n-way-interaction and main-effects (if n==1) for the
data given in anovadata.
The number of rows in anovadata corresponds the number of
subjects. 'factor' is a cell containing the name of the factors
in the first column and the number of gradations in the second
column. 'n' specifies the order of the interactions to be
calculated. Factors must be in hierarchical order, starting
from the highest level.
betweenfactor can contain one grouping factor.
'results' is a cell array containing the following information in the
columns with the denoted indices:
1:Name 2:ConditionSumSquare 3:ConditionDf 4:ConditionMeanSquare 5:ErrorSumSquare
6:ErrorDf 7:ErrorMeanSquare 8:F-Value 9:p-Value
'results{3,2}' for instance contains the ConditionQS for the third
tested effect.
Lower order effects are subtracted afterwards in RMANOVA.
See also RMANOVA, ANOVATOAVGFILES.