<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF">
<div></div>
<div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">
<div><font><span class="876225317-09112012">Dear fieldtrip users</span></font></div>
<div><span class="876225317-09112012"></span> </div>
<div><span class="876225317-09112012">I tried to perform cluster analysis with fieldtrip. Since I've performed preprocessing/frequency analysis before using fieldtrip, I had to form the specific</span></div>
<div><span class="876225317-09112012">data structure to use for ft_freqstatistics by myself.</span></div>
<div><span class="876225317-09112012"></span> </div>
<div><span class="876225317-09112012">I made a a structur as follows:</span></div>
<div><span class="876225317-09112012">Condition 1 'EEGa':</span></div>
<div><span class="876225317-09112012">--> 10 subjects:</span></div>
<div><span class="876225317-09112012">EEGa{1:10}</span></div>
<div> label: {128x1 cell} %128 egi elec.<br>
<span class="876225317-09112012"> </span>dimord: 'chan_freq'<br>
freq: 1<br>
powspctrm: [128x1 double]<br>
cumtapcnt: 1<br>
cfg: [1x1 struct]</div>
<div> </div>
<div><span class="876225317-09112012"><span class="876225317-09112012">Condition 2 'EEGm':</span></span></div>
<div><span class="876225317-09112012">EEGm{1:10}</span></div>
<div> label: {128x1 cell}<br>
<span class="876225317-09112012"> </span>dimord: 'chan_freq'<br>
freq: 1<br>
powspctrm: [128x1 double]<br>
cumtapcnt: 1<br>
cfg: [1x1 struct]</div>
<div> </div>
<div> </div>
<div><span class="876225317-09112012">Then I performed the following steps:</span></div>
<div><span class="876225317-09112012">
<p>cfg = [];</p>
<p>cfg.elec = elec;<span class="876225317-09112012"> %was defined before EGI 128 electrodes</span></p>
<p>cfg.neighbours = neighbours; %also successfully defined before</p>
<p>cfg.latency = 'all';</p>
<p>%cfg.frequency = 'all';</p>
<p>cfg.channel = 'all';%eleselection % see CHANNELSELECTION</p>
<p>cfg.avgovertime = 'no';</p>
<p>%cfg.avgoverfreq = 'no';</p>
<p>cfg.avgoverchan = 'no';</p>
<p>cfg.statistic = 'depsamplesT';</p>
<p>cfg.numrandomization = 2^<span class="876225317-09112012">10</span>;</p>
<p>cfg.correctm = 'cluster';</p>
<p>cfg.method = 'montecarlo';</p>
<p>cfg.clusteralpha = 0.05;</p>
<p>cfg.alpha = 0.05;</p>
<p>cfg.alpha = 0.05;</p>
<p>cfg.clustertail = 0;</p>
<p></p>
<p>cfg.feedback = 'gui';</p>
<p>cfg.parameter = 'powspctrm';</p>
<p>cfg.design = [</p>
<p>1 2 3 4 5 6 7 8 <a href="tel:9%2010%201%202%203%204%205%206%207%208%209" x-apple-data-detectors="true" x-apple-data-detectors-result="0">9 10 1 2 3 4 5 6 7 8 9</a> 10 % subject number</p>
<p>1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 ]; % condition number</p>
<p>cfg.uvar = 1; % "subject" is unit of observation</p>
<p>cfg.ivar = 2; % "condition" is the independent variable</p>
<p>stat = ft_freqstatistics(cfg, EEGa{:}, EEGm{:});</p>
<p> </p>
</span></div>
<div><span class="876225317-09112012"></span> </div>
<div><span class="876225317-09112012">The function ft_freqstatistics runs but the stats results are strange.</span></div>
<div><span class="876225317-09112012">My stats.stat is always -inf</span></div>
<div><span class="876225317-09112012">and stats.prob always 0</span></div>
<div><span class="876225317-09112012"></span> </div>
<div><span class="876225317-09112012">What might be the problem?</span></div>
<div><span class="876225317-09112012"><br>
</span></div>
<div><span class="876225317-09112012"><br>
</span></div>
<div><span class="876225317-09112012">Thanks and all the best </span></div>
<div><span class="876225317-09112012">Caroline</span></div>
<div><span class="876225317-09112012"></span> </div>
<br>
</span><br>
<br>
Von meinem iPhone gesendet</div>
</body>
</html>