0todd0000/spm1d

anova2onerm - "Design must be balanced"

Closed this issue · 6 comments

Hi all,

When I run anova2onerm I get the message "Design must be balanced". Does it comes from my uneven number of participants for my within and in between factors?

cheers

Yes, spm1d currently only supports balanced designs. One way around this issue is to impose balance by randomly selecting N individuals from the larger group, where N is the size of the smaller group, then repeating for several random subsets to verify the numerical stability of the results.

Thank you for your reply.

Hello Dr Pataky,
I would like to know if you plan to work on the possibility to use spm on balanced design? Thank you very much for answering ;)

Support for balanced design already exists, you should be able to run all balanced designs using spm1d. A future version of spm1d will support unbalanced designs; please see this and other in-development functionality in the spm1d feature requests list.

Sorry i was talking about unbalanced design. Do you know when the future version of spm would be available?

I'm not sure, it depends on several factors including funding. Support for unbalanced designs might be available in spm1d in 2023, but it might be 2024 or later.