0todd0000 / spm1d

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

anova2onerm - "Design must be balanced" #213

Closed ruddbull closed 1 year ago

ruddbull commented 2 years ago

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

0todd0000 commented 2 years ago

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.

ruddbull commented 2 years ago

Thank you for your reply.

Sandra29200 commented 2 years ago

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

0todd0000 commented 2 years ago

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.

Sandra29200 commented 2 years ago

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

0todd0000 commented 2 years ago

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.