<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Hi Zsolt,</div><div><br><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi Tzvetan,<div><br></div><div>thanks for your suggestions. </div><div>I am still stucked at the ft_freqstatistics, as I keep on receiving the following error and would be glad if you could make a comment on this as well:</div><div><br></div><div><div>####</div><div>Reference to non-existent field 'label'.</div><div><br></div><div>Error in ft_freqgrandaverage (line 123)</div><div>        cfg.channel = ft_channelselection(cfg.channel, varargin{i}.label);</div></div><div>###</div><div><br></div><div>Is it because I have labelcomb in the WPLI data?</div></div></blockquote>yes<br><blockquote type="cite"><div dir="ltr"><div><br></div><div><div>labelcmb: {9x2 cell}</div><div>        dimord: 'chan_freq_time'</div><div>    wplispctrm: [9x7x16 double]</div><div>          freq: [3 4 5 6 7 8 9]</div><div>          time: [-0.5000 -0.4004 -0.3008 -0.1992 -0.0996 0 0.0996 0.1992 0.3008 0.4004 0.5000 0.5996 0.6992 0.8008 0.9004 1]</div><div>           cfg: [1x1 struct]</div></div><div><br></div><div>And this is my specification (I couldn't fine the option cfg.channelcmb for ft_freqgrandaverage in the reference documentation):</div></div></blockquote>again try to give cell arrays as input to ft_freqanalysis. I’m still considering the case you mentioned in your initial e-mail, one channel etc.</div><div>e.g. cfg.channel = ‘FCzF3’;</div><div>       cfg.parameter = ‘wplispctrm’;</div><div>       cfg.neighbours = []; % this will force clustering over time and freq dimension</div><div><br></div><div>best</div><div>tzvetan</div><div><br></div><div><blockquote type="cite"><div dir="ltr"><div><br></div><div><div>cfg                          = [];</div><div>cfg.keepindividual    = 'yes';</div><div>cfg.cfg.foilim           = 'all';</div><div>cfg.toilim                = 'all';</div><div>cfg.channel            = 'all';</div><div>cfg.parameter         = 'wplispctrm';</div></div><div><br></div><div>Thanks again for the answer in advance!</div><div><br></div><div>Best,</div><div>Zsolt</div><div><br></div><div>ps.I can provide other parts of my code but I don't want to make this mail too long :</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-13 19:14 GMT+02:00 Tzvetan Popov <span dir="ltr"><<a href="mailto:tzvetan.popov@uni-konstanz.de" target="_blank">tzvetan.popov@uni-konstanz.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi Zsolt,</div><div><span class=""><br><br><blockquote type="cite"><div dir="ltr"><p class="MsoNormal"><span lang="EN-US" style="font-family:Arial,sans-serif">Dear all,</span></p><div><span lang="EN-US" style="font-family:Arial,sans-serif"> </span><br></div><p class="MsoNormal" style="text-align:justify"><span lang="EN-US" style="font-family:Arial,sans-serif">I would like
to perform a cluster-based permutation test on weighted phase lag index values by
using a within-subjects experimental design. I have two conditions (congruent
and incongruent one) and my goal is to compute WPLI between certain channel
combinations (FCz and F3 for instance) and see the WPLI change let’s say in 3-9
Hz and -100 to 500 ms between the two conditions. </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><span lang="EN-US" style="font-family:Arial,sans-serif"><br></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><span lang="EN-US" style="font-family:Arial,sans-serif">I experienced some difficulties a</span><span style="font-family:Arial,sans-serif">fter the point when I calculated the WPLI data for each participant. To perform the above-mentioned comparison, shall I use ‘</span><span style="font-family:Arial,sans-serif">ft_freqstatistics’for the cluster-based permutation test?</span></p><div><br></div></div></blockquote></span>You could. Stick with the tutorial you are currently working with. You should organize your data into cell arrays and call ft_freqstatistics like this: stat = ft_freqstatistics(cfg, congruent{:}, incongruent{:}). Furthermore you should specify cfg.parameter = ‘wplispctrm’ otherwise ft_freqstatistics will default to ‘powspctrm’ which will be not present in the data.</div><div>good luck</div><span class="HOEnZb"><font color="#888888"><div>tzvetan</div><div><br></div></font></span></div><br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div>************************************************************</div><div>Ph.D.</div><div>Department of Clinical Neurophysiology<br>Georg-August University, Göttingen<br>Robert-Koch-Str. 40<br>37075 Goettingen</div><div>Web: <a href="http://www.uni-goettingen.de/en/222525.html" target="_blank">http://www.uni-goettingen.de/en/222525.html</a></div><div>************************************************************<br></div></div></div></div>
</div>
_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</blockquote></div><br></body></html>