Repeated measures ANOVA permutation test for multiple subjects?

  • MNE version: 1.6
  • operating system: macOS 13.x

Hello,

I’ve got a question about the repeated measures ANOVA cluster test with regards to what kind of repeated measures it supports. My study design is a cross-over study with 4 different conditions, all tested on the same 10 subjects, each with multiple repeated trials (68 after bad epoch rejection and equalizing counts among them).

I understand the basic data structure needed for the test as passing a list of

[condition1array, condition2array, … ], where conditionNarray has shape (samples(subjects), time, space)

However, I’m a little confused about the samples(subjects) dimension. Is it proper to use all the samples from all the subjects (i.e. conditionNarray has shape (10*68, time, space))? Part of me thinks that I could do that and then use an f-threshold of

mne.stats.f_threshold_mway_rm(n_subjects = 10)

But part of me is also a little confused with how the permutations would work, since, as far as I can tell, the permutations do not keep track of which data are originally from which subjects. Does this test support repeated measures across multiple subjects, or just repeated measures across one subject at a time?

I really appreciate any insight you can provide. Thank you!

You would generally average across the 68 trials, so you would have for each subject a total of 4 Evoked objects (one for each condition). Then, condition1array would be created from the 10 Evoked objects belonging to the first condition, condition2array from the 10 Evoked objects belonging to the second condition, and so on.

1 Like

Thank you for the reply. I guess I’m still wondering where the “repeated measures” aspect of the repeated measures ANOVA permutation cluster test (as stated in this tutorial: Repeated measures ANOVA on source data with spatio-temporal clustering — MNE 1.6.1 documentation) comes into play.

Is the repeated measures ANOVA cluster test only meant to be from data from 1 subject?