I'm currently trying to adapt the python spatio-temporal clustering stats example to my own data.
As a sanity check I started out with 168 right versus 168 left button presses, irrespective of the condition.
Those yield the expected left-hemispheric blob when averaged over time slices and subjects (dSPM with regular default parameters), that's good.
However, I'm now having a hard time to understand why the clustering test's p_values uniformly equal to 1.0. To me this does not seem like a 'natural' result. I hope I missed something obvious and trivial, but currently I don't see what it might be.
Any pointers would be highly welcome.
Sorry, forgot to pick up this one. Yes, indeed, all p-values are 1 and hence no valid clusters. This is confusing, given the pronounced motor response and the expected high sensitivity of spatio-temporal clustering...
can you share the files somewhere?
Alex
The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
It turned out there was a silent bug in 'mne.stats.spatio_temporal_cluster_1samp_test' regarding the parameter-handling for parallel computation.
background: negative values indicating the number processors *not* to be used interfered with the internal job dispatch. As a consequence the test just was not performed leaving the array of p-values unmodified.
This issue is fixed in the current development version of mne-python.