I am analysing some behaviour data from several participants in Matlab. I used to do "repeated measures" in SPSS.
But is this the same as adding "subject" as a factor, and choosing it as a random effect?
i.e. my normal repeated measures data matrix x looks like this
condition A condition B
subject 1 x(1,1) x(1,2)
subject 2 x(2,1) x(2,2)
... ... ...
subject 7 x(7,1) x(7,2)
so for Matlab, I tried
COND = [1 2 SUBJ = [1 1
1 2 and 2 2
... ...
1 2] 7 7]
then ran
anovan(x(:), {COND(:), SUBJ(:)}, 'random',2 )
Now, this does not seem to give me the same results as SPSS, for repeated measures... Perhaps I have misunderstood the 'random' parameter - I thought you could construct a "repeated measures" test from it?