<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:10pt;color:#000000;font-family:Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi all, </p>
<p><br>
</p>
<p>I'm currently using <span style="font-family: Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 13.3333px;">ft_timelockstatistics to compute the group-level statistical
difference between 2 granger causality spectra (I'm <span style="font-family: Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 13.3333px;">
substituting freq for time data).</span></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 13.3333px;"><br>
</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 13.3333px;">My question is whether my current
<span style="font-family: Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 13.3333px;">
cfg</span> settings for <span style="font-family: Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 13.3333px;">
ft_timelockstatistics</span> (see code below) will cluster my data over time? I assume by selecting </span><span style="font-size: 13.3333px;">cfg.avgovertime = 'no'
<span>FT_STATISTICS_MONTECARLO will cluster over time rather than space</span>.. but I just wanted to double check...</span></p>
<p><span style="font-size: 13.3333px;"><br>
</span></p>
<p><span style="font-size: 13.3333px;">Many thanks, </span></p>
<p><span style="font-size: 13.3333px;"><br>
</span></p>
<p><span style="font-size: 13.3333px;">Robert Seymour (Aston Brain Centre)<br>
</span><span style="font-family: Arial, Helvetica, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols; font-size: 13.3333px;"></p>
<div><br>
</div>
</span>
<p></p>
<p><br>
</p>
<p><br>
</p>
<p>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</p>
<p></p>
<div>cfg = [];</div>
<div>cfg.avgovertime = 'no';</div>
<div>cfg.parameter = 'avg';</div>
<div>cfg.method = 'montecarlo';</div>
<div>cfg.statistic = 'ft_statfun_depsamplesT';</div>
<div>cfg.alpha = 0.05;</div>
<div>cfg.clusteralpha = 0.05;</div>
<div>cfg.correctm = 'cluster';</div>
<div>cfg.numrandomization = 1000;</div>
<div> </div>
<div>Nsub = numel(grandavgA);</div>
<div>cfg.design(1,1:2*Nsub) = [ones(1,Nsub) 2*ones(1,Nsub)];</div>
<div>cfg.design(2,1:2*Nsub) = [1:Nsub 1:Nsub];</div>
<div>cfg.ivar = 1; % the 1st row in cfg.design contains the independent variable</div>
<div>cfg.uvar = 2; % the 2nd row in cfg.design contains the subject number</div>
<div> </div>
<div>stat = ft_timelockstatistics(cfg,grandavgB{:},grandavgA{:});</div>
<div><br>
</div>
<div>figure; plot(stat.stat); xlabel('Freq (Hz)'); ylabel('t-value');</div>
<div>figure; plot(stat.prob);xlabel('Freq (Hz)'); ylabel('p-value');</div>
<div>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</div>
<br>
<p></p>
</div>
</body>
</html>