0todd0000 / spm1d

One-Dimensional Statistical Parametric Mapping in Python
GNU General Public License v3.0
60 stars 21 forks source link

Two way ANOVA for repeated measures #252

Closed MauriGiorgio closed 7 months ago

MauriGiorgio commented 1 year ago

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.

m-a-robinson commented 1 year ago

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

MauriGiorgio commented 1 year ago

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).

m-a-robinson commented 1 year ago

Yes that is correct I'm afraid. spm1d only works with balanced designs at the moment. See this discussion https://github.com/0todd0000/spm1d/issues/213 for further brief comment.