<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"><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 class="webkit-block-placeholder"></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>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><div>tzvetan</div><div><br></div></body></html>