0todd0000 / spm1dmatlab

One-Dimensional Statistical Parametric Mapping in Matlab.
GNU General Public License v3.0
28 stars 13 forks source link

Unequal groups ANOVA (3 way, 2 rm) - not just warning, but no answers at all #176

Closed freddybrown1984 closed 1 year ago

freddybrown1984 commented 2 years ago

Thanks so much for all the help RE the 3waytworm ANOVA. I finally understood how to correct the matlab path, considering the “Unrecognized function or variable 'spm_uc'” error messagae

Can I confirm, though... will this three way ANOVA not work with groups of different sizes? And there’s no work-around? I can now get all of my desired outputs with the equal sized groups, but not when they differ by n = 1.

Thanks - and again apologies if I've missed a previous instance of this question being answered

Freddy

0todd0000 commented 2 years ago

Correct, spm1d currently does not support unbalanced designs. You can work around this by imposing balance using random subsets. Please see relevant discussions here:

freddybrown1984 commented 2 years ago

Great stuff. Thanks (again) Todd!

I think I've seen some mentions of adding a power analysis into the SPM outputs. Can "observed power" be calculated for my ANOVAs?

0todd0000 commented 1 year ago

Power can be calculated for arbitrary designs but for the 1D case there are several necessary considerations. Please see the power1d site for a few descriptions of relevant considerations.

freddybrown1984 commented 1 year ago

Brilliant. Thanks!