0todd0000/spm1d

Two way ANOVA for repeated measures

Closed this issue · 3 comments

Hi,
I have to analyze in Matlab a database made up of two different groups of subjects: one group for control with 9 subjects and the other one subjected to a session of training with 10 subjects and for each of them were carreid out two measurements at two different instants of time.
I need to do a Two-way ANOVA for repeated measures in order to compare the results, but all the codes I've found ask in input two groups with the same number of subjects and I want to know if there is a code to perform that type of Anova even if the two groups are numerically different.
Thank you.

Hello,
This sounds like you have a mixed design i.e. one between subjects factor (group) and one within subjects factor (measurement). You can find an example of this type of ANOVA using ex_anova2onerm.py.
regards
Mark

Thank you, I have already used that function in Matlab but it doesn't work because the two groups are unbalanced (9 subjects control and 10 subjects training).

Yes that is correct I'm afraid. spm1d only works with balanced designs at the moment. See this discussion #213 for further brief comment.