<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi there,<div>I am trying to compute a simple cluster-based statistic in a between subjects design. I have followed the steps in the respective tutorial very closely.</div><div>This the code I used:</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="3" style="font: 12.0px Courier">%%%%%%%%%%%%%%%%%%%%%%%%%%%</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="3" style="font: 12.0px Courier">cfg = [];</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="3" style="font: 12.0px Courier">cfg.method = </font><font face="Courier" size="3" color="#a020f0" style="font: 12.0px Courier; color: #a020f0">'montecarlo'</font><font face="Courier" size="3" style="font: 12.0px Courier">;       </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="3" style="font: 12.0px Courier">cfg.statistic = </font><font face="Courier" size="3" color="#a020f0" style="font: 12.0px Courier; color: #a020f0">'indepsamplesT'</font><font face="Courier" size="3" style="font: 12.0px Courier">; </font></div><p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><font face="Courier" size="3" style="font: 12.0px Courier"> </font><br class="khtml-block-placeholder"></p><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="3" style="font: 12.0px Courier">cfg.correctm = </font><font face="Courier" size="3" color="#a020f0" style="font: 12.0px Courier; color: #a020f0">'cluster'</font><font face="Courier" size="3" style="font: 12.0px Courier">;</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="3" style="font: 12.0px Courier">cfg.clusteralpha = 0.001;         </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="3" style="font: 12.0px Courier">cfg.clusterstatistic = </font><font face="Courier" size="3" color="#a020f0" style="font: 12.0px Courier; color: #a020f0">'maxsize'</font><font face="Courier" size="3" style="font: 12.0px Courier">; </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="3" style="font: 12.0px Courier">cfg.minnbchan = 4;               </font></div><p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><font face="Courier" size="3" style="font: 12.0px Courier"> </font><br class="khtml-block-placeholder"></p><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="3" style="font: 12.0px Courier">cfg.tail = 0;                    </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="3" style="font: 12.0px Courier">cfg.clustertail = 0;</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="3" style="font: 12.0px Courier">cfg.alpha = 0.005;               </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="3" style="font: 12.0px Courier">cfg.numrandomization = 500;      </font></div><p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><font face="Courier" size="3" style="font: 12.0px Courier"> </font><br class="khtml-block-placeholder"></p><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="3" style="font: 12.0px Courier">design = [ones(1,13) ones(1,13)+1];</font></div><p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><font face="Courier" size="3" style="font: 12.0px Courier"> </font><br class="khtml-block-placeholder"></p><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="3" style="font: 12.0px Courier">cfg.design = design;             </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="3" style="font: 12.0px Courier">cfg.ivar  = 1;                   </font></div><p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><font face="Courier" size="3" style="font: 12.0px Courier"> </font><br class="khtml-block-placeholder"></p><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="3" style="font: 12.0px Courier">cfg.channel = {</font><font face="Courier" size="3" color="#a020f0" style="font: 12.0px Courier; color: #a020f0">'MEG'</font><font face="Courier" size="3" style="font: 12.0px Courier">,sub(1).allbadchan{:}};</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="3" style="font: 12.0px Courier">cfg.latency = [.15 .2];</font></div><p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><font face="Courier" size="3" style="font: 12.0px Courier"> </font><br class="khtml-block-placeholder"></p><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="3" style="font: 12.0px Courier">[stat] = ft_timelockstatistics(cfg, grandavgG,grandavgE); % individuals kept</font></div></div><div><font class="Apple-style-span" face="Courier">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</font></div><div><font class="Apple-style-span" face="Courier"><br></font></div><div><font class="Apple-style-span" face="Arial">My problem is, that I'm not sure which time resolution to use. I would like to use a small resolution of 10 ms, but this leads to a fairly random pattern of significant sensors (see attached figure, on the right). Of course, the more time points I include, the less significant sensors are left over. However, another problem is, that the ones that are left (figure, left), are not related to big differences in the activation pattern at all. How is it possible that my significant sensors end up being so randomly distributed? Also, ft_timelockstatistics only comes up with one positive and one negative cluster., but the sign. sensors are not always connected. Could anyone give some helpful input here?</font></div><div><font class="Apple-style-span" face="Arial"><br></font></div><div><font class="Apple-style-span" face="Arial">Thanks,</font></div><div><font class="Apple-style-span" face="Arial">Luisa</font></div><div><font class="Apple-style-span" face="Arial"><br></font></div><div><font class="Apple-style-span" face="Arial">Fyi: I have tried different thresholds and different numbers of neighbourhood channels, but there's not much of a change.</font></div><div><font class="Apple-style-span" face="Arial"></font></div></body></html>