<p dir="ltr">I do not know how eeglab interfaces with fieldtrip to perform cluster-correction so my help is going to be limited:</p>
<p dir="ltr">In fieldtrip to perform cluster-correction you need to know which channels are considered direct neighbours - that is how activity can be clustered in channel space. This information is specified in cfg.neighbours. ft_prepare_neighbours and ft_neighbourplot can be helpful in defining this.<br>
You could try performing cluster-correction directly in fieldtrip - it's not difficult.</p>
<p dir="ltr">BTW - did you paste the full error stack? It would be easier to detect the problem if we knew where exactly it happens on the eeglab side. You can try turning on the breakpoints -> stop on errors option and once you catch the error type: "dbstack" to see the whole "nesting" of function calls that lead to the error.</p>
<div class="gmail_quote">18 sty 2016 19:19 "Shingo Tokimoto" <<a href="mailto:tokimoto@mejiro.ac.jp">tokimoto@mejiro.ac.jp</a>> napisaƂ(a):<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear EEGLA users,<br>
<br>
I am trying to apply cluster-based permutation tests to my EEG data. I have found the relevant discussion on EEGLAB list, and I know the settings in "statistical parameters" in the STUDY function. With the setting as specified, cluster-based permutation tests work well for ERP but do not work for ERSP. The error message appears as below.<br>
<br>
--------------<br>
EEGLAB error in function ft_checkconfig() at line 153:<br>
<br>
Error: ft_checkconfig (line 153)<br>
The field cfg.neighbours is required<br>
<br>
This is a problem with FIELDTRIP. The Fieldtrip version you downloaded is corrupted. Please manually replace Fieldtrip with an earlier version and/or email the Fieldtrip developers so they can fix the issue.<br>
------------<br>
<br>
I posted the question to Fieldtrip mailing list, but they say that the function for ERSP should work since it works well for ERP.<br>
<br>
I am running EEGLAB (eeglab13_5_4b) on Matlab 2013b. I tried Fieldtrip-lite ver. 151020 first, and replaced it with fieldtrip-20160104. However, the same message appears. It is my pleasure if anyone tell me the proper "earlier version" of Fieldtrip. I appreciate any suggestions. Thank you in advance.<br>
<br>
************************************************<br>
Shingo Tokimoto, Ph.D.<br>
in Linguistics and Psychology<br>
Department of Foreign Languages<br>
Mejiro University<br>
4-31-1, Naka-Ochiai, Shinjuku, Tokyo,<br>
161-8539, Japan<br>
<a href="mailto:tokimoto@mejiro.ac.jp">tokimoto@mejiro.ac.jp</a><br>
************************************************<br>
<br>
<br>
_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br>
</blockquote></div>

<br>
<hr>