[Mne_analysis] Repeated-measured oneway ANOVA / paired ttest in spatio temporal clustering

Laetitia Grabot laetitia.grabot at gmail.com
Mon Oct 27 10:03:33 EDT 2014
Search archives:

Dear mailing list,

I'm doing spatio-temporal clustering on 12 subjects in source space. Very
basically, I would like to compare two conditions by taking into account
subjects variability, so I need to do a paired ttest/oneway
repeated-measure ANOVA. Yet, the spatio_temporal_cluster_test function is
only implementing  oneway anova, while the spatio_temporal_cluster_1samp_test
is implementing simple ttest on the difference
*.*
*I looked at related issues on github and found that there is a twoway
anova with repeated measures function implemented under the name of
f_twoway_rm but it doesn't work for oneway anova (factor_levels = [2],
n_conditions = 2). Then I tried to build a stat_fun function from *

*scipy.stats.ttest_rel:*

*def stat_fun(*args):*

*      a = X[0]*
*      b = X[1]**      return *
*scipy.stats.ttest_rel(a,b)*

*But I get an error at lign 708 in _permutation_cluster_test (cannot copy
sequence with size 2 to array axis with dimension 0), I guessed there is a
format problem in my stat_fun function...*


*Did someone find a way to do such an analysis?*


*Thanks in advance,Laetitia Grabot.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20141027/d1a670d8/attachment.html 


More information about the Mne_analysis mailing list