<div dir="ltr"><div><div><div>Dear Fieldtrippers,<br><br></div>we encountered a problem during our DICS Beamformer-Statistics. <br><br></div>After calculating a beamformer (DICS), normalisation and building grandaverages across subjects (here exemplarily 3 subjects) we try to calculate cluster based permutation statistic (in this study: between groups - one condition). <br></div><div><br></div><div>The code we used is as follows:<br></div><div><br> cfg = [];<br> <br> cfg.method = 'montecarlo';<br> %cfg.statistic = 'depsamplesT';<br> cfg.statistic = 'ft_statfun_indepsamplesT';<br> cfg.correctm = 'cluster';<br> cfg.clusteralpha = 0.05; %ft default 0.05; <br> cfg.clusterstatistic = 'maxsum';<br> cfg.minnbchan = 2;<br> cfg.tail = 0;<br> cfg.clustertail = 0;<br> cfg.alpha = 0.025; %ft hat hier 0,025<br> <br> cfg.parameter = 'pow';<br> cfg.dim = grandavgA.dim;<br> <br> cfg.numrandomization = 1; % number of draws from the permutation distribution<br> <br> design(1,:) = [1 1 1 2 2 2];<br> design(2,:) = [1 1 1 1 1 1];<br> <br> cfg.design = design;<br> cfg.ivar = 1;<br> <br> stat = ft_sourcestatistics(cfg, grandavgA, grandavgB);<br> <br><br><br></div><div>The input data structure (grandavgA, grandavgB) is as follows:<br><br>grandavgA = <br><br> pow: [3x116380 double]<br> dim: [46 55 46]<br> inside: [116380x1 logical]<br> pos: [116380x3 double]<br> cfg: [1x1 struct]<br><br>grandavgB = <br><br> pow: [3x116380 double]<br> dim: [46 55 46]<br> inside: [116380x1 logical]<br> pos: [116380x3 double]<br> cfg: [1x1 struct]<br><br><br></div><div>Fieldtrip version: current (02/23/2015)<br><br><br></div><div>Thanks, Martin<br><br><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">--
</span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">M.Sc. Martin Winkels</span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">Universitätsklinikum Münster</span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">Institut für Biomagnetismus & Biosignalanalyse</span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">Malmedyweg 15</span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">48149 Münster</span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">GERMANY</span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New""> </span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">Telefon: <a href="tel:%2B49%20251%2083%2056%20846" value="+492518356846" target="_blank">+49 251 83 56 846</a></span></p>
<span style="font-size:10pt;font-family:"Courier New"">Web: <a href="http://biomag.uni-muenster.de" target="_blank">http://biomag.uni-muenster.de</a></span><br></div><div><br></div></div>