<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Georgios,
<div class=""><br class="">
</div>
<div class="">The issue you are facing, is that you input grandaveraged data into ft_freqstatistics, which does not contain the individual subject estimates anymore. So indeed, as you already suspected yourself, there’s something wrong with the input into the
function. Once the individual subject dimension is gone, it is impossible to compute a group-level T-statistic, let alone a corresponding critical value for clustering.</div>
<div class=""><br class="">
</div>
<div class="">Indeed, once I managed to download the wetransfer files and load in one of the files, which nearly crashed my matlab because of its uncompressed size, it looks as if you are using the wrong variable as input to the statistics function.</div>
<div class=""><br class="">
</div>
<div class="">Just for future reference, please only save (and upload) the variables that are needed to reproduce your problem, rather than your full matlab workspace).</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 11 Sep 2020, at 11:56, Tertikas, Georgios <<a href="mailto:georgios.tertikas@kcl.ac.uk" class="">georgios.tertikas@kcl.ac.uk</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt;" class="">Hi List,</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt;" class="">I am currently analyzing EEG data looking at alpha band frequencies.</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt;" class="">I am analyzing TFR sequences from 12 participants for left and right stimuli (2 conditions) and I want to isolate the electrodes that show differential activation between the two conditions. As such I have
been trying to perform cluster based selection of electrodes but I receive the following error message when using ft_freqstatistics:</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt; color: red;" class="">Error using ft_statistics_montecarlo (line 242)</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt; color: red;" class="">could not determine the parametric critical value for clustering</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt; color: red;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt; color: red;" class="">Error in ft_freqstatistics (line 193)</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt; color: red;" class=""> [stat, cfg] = statmethod(cfg, dat, design);</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt;" class="">Could someone aid me in that? I am also not entirely sure whether grand averaged data will be useful in my case but that is what is suggested in the official site.</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt;" class="">My code up to this point is the following:</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier; color: rgb(74, 135, 78);" class="">%% compute the cluster based statistics</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg = [];</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.channel = {</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'Fp1'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'Fz'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'F3'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'FT9'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'FC5'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'FC1'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'C3'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'T7'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'TP9'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'CP5'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'CP1'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'Pz'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'P3'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'P7'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'O1'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'Oz'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'O2'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'P4'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'P8'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'TP10'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'CP6'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'CP2'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'C4'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'T8'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'FT10'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'FC6'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'FC2'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'F4'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'F8'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'AFz'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'F1'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'F5'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'FT7'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'FC3'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'C1'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'C5'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'TP7'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'CP3'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'P1'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'P5'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'PO7'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'PO3'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'POz'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'PO4'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'PO8'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'P6'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'P2'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'CPz'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'CP4'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'TP8'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'C6'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'C2'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'FC4'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'FT8'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'F6'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'AF4'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'F2'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'FCz'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">};</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.latency = [0.8 1.15];</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.frequency =<span class="Apple-converted-space"> </span><span style="color: rgb(178, 69, 243);" class="">'all'</span>;</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.method =<span class="Apple-converted-space"> </span><span style="color: rgb(178, 69, 243);" class="">'montecarlo'</span>;</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.statistic =<span class="Apple-converted-space"> </span><span style="color: rgb(178, 69, 243);" class="">'ft_statfun_depsamplesT'</span>;</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.correctm =<span class="Apple-converted-space"> </span><span style="color: rgb(178, 69, 243);" class="">'cluster'</span>;</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.clusteralpha = 0.05;</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.clusterstatistic =<span class="Apple-converted-space"> </span><span style="color: rgb(178, 69, 243);" class="">'maxsum'</span>;</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.minnbchan = 2;</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.tail = 0;</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.clustertail = 0;</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.alpha = 0.025;</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.numrandomization = 1000;</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier; color: rgb(74, 135, 78);" class="">% specifies with which sensors other sensors can form clusters</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier; color: rgb(74, 135, 78);" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.neighbours = neighbours</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">subj = 12;</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">design = zeros(2,2*subj);</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier; color: rgb(4, 51, 255);" class="">for</span><span style="font-size: 7.5pt; font-family: Courier;" class=""><span class="Apple-converted-space"> </span>i = 1:subj</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class=""> design(1,i) = i;</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier; color: rgb(4, 51, 255);" class="">end</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier; color: rgb(4, 51, 255);" class="">for</span><span style="font-size: 7.5pt; font-family: Courier;" class=""><span class="Apple-converted-space"> </span>i = 1:subj</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class=""> design(1,subj+i) = i;</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier; color: rgb(4, 51, 255);" class="">end</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">design(2,1:subj) = 1;</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">design(2,subj+1:2*subj) = 2;</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.design = design;</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.uvar = 1;</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.ivar = 2;</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">[stat] = ft_freqstatistics(cfg,grand_averaged_11_TFR ,grand_averaged_12_TFR)</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 9pt; font-family: Courier;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt;" class="">And the output that I receive is:</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">cfg =<span class="Apple-converted-space"> </span></span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> struct with fields:</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> channel: {58×1 cell}</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> latency: [0.8000 1.1500]</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> frequency: 'all'</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> method: 'montecarlo'</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> statistic: 'ft_statfun_depsamplesT'</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> correctm: 'cluster'</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> clusteralpha: 0.0500</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> clusterstatistic: 'maxsum'</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> minnbchan: 2</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> tail: 0</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> clustertail: 0</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> alpha: 0.0250</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> numrandomization: 1000</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> neighbours: [1×66 struct]</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">the call to "ft_selectdata" took 1 seconds and required the additional allocation of an estimated 22 MB</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">using specified neighbours for the channels</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">there are on average 6.8 neighbours per channel</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">the call to "ft_prepare_neighbours" took 0 seconds and required the additional allocation of an estimated 5 MB</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">using "ft_statistics_montecarlo" for the statistical testing</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">using "ft_statfun_depsamplesT" for the single-sample statistics</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">constructing randomized design</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">total number of measurements = 2</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">total number of variables = 24</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">number of independent variables = 1</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">number of unit variables = 1</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">number of within-cell variables = 0</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">number of control variables = 0</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">using a permutation resampling approach</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">repeated measurement in variable 1 over 1 levels</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">number of repeated measurements in each level is 2</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">the maximum number of unique permutations is 2</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">Warning: cfg.numrandomization is larger than the maximum number of unique permutations, better use 'all'</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">generated 1000 random permutations</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">computing a parametric threshold for clustering</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">Error using ft_statfun_depsamplesT (line 83)</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">The data must contain at least two units of observation (trials or subjects).</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">Error using ft_statistics_montecarlo (line 242)</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">could not determine the parametric critical value for clustering</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">Error in ft_freqstatistics (line 193)</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> [stat, cfg] = statmethod(cfg, dat, design);</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt;" class="">This is a wetransfer link with my data and with a mat file that I have created for the specific electrode array that I have (acticap_64).</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt;" class=""><a href="https://we.tl/t-Jqn4HBFNzf" class="">https://we.tl/t-Jqn4HBFNzf</a></span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt;" class="">Thank you very much in advance for your help.</span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt;" class=""> </span><o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 11pt;" class=""> </span><o:p class=""></o:p></div>
</div>
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">fieldtrip
mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<a href="https://doi.org/10.1371/journal.pcbi.1002202" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://doi.org/10.1371/journal.pcbi.1002202</a></div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>