[FieldTrip] Cluster statistics

Lustenberger Caroline Caroline.Lustenberger at kispi.uzh.ch
Sun Nov 11 14:25:31 CET 2012


Dear fieldtrip users

I tried to perform cluster analysis with fieldtrip. Since I've performed preprocessing/frequency analysis before using fieldtrip, I had to form the specific
data structure to use for ft_freqstatistics by myself.

I made a a structur as follows:
Condition 1 'EEGa':
--> 10 subjects:
EEGa{1:10}
        label: {128x1 cell} %128 egi elec.
        dimord: 'chan_freq'
         freq: 1
    powspctrm: [128x1 double]
    cumtapcnt: 1
          cfg: [1x1 struct]

Condition 2 'EEGm':
EEGm{1:10}
        label: {128x1 cell}
        dimord: 'chan_freq'
         freq: 1
    powspctrm: [128x1 double]
    cumtapcnt: 1
          cfg: [1x1 struct]


Then I performed the following steps:

cfg = [];

cfg.elec = elec; %was defined before EGI 128 electrodes

cfg.neighbours = neighbours; %also successfully defined before

cfg.latency = 'all';

%cfg.frequency = 'all';

cfg.channel = 'all';%eleselection % see CHANNELSELECTION

cfg.avgovertime = 'no';

%cfg.avgoverfreq = 'no';

cfg.avgoverchan = 'no';

cfg.statistic = 'depsamplesT';

cfg.numrandomization = 2^10;

cfg.correctm = 'cluster';

cfg.method = 'montecarlo';

cfg.clusteralpha = 0.05;

cfg.alpha = 0.05;

cfg.alpha = 0.05;

cfg.clustertail = 0;

cfg.feedback = 'gui';

cfg.parameter = 'powspctrm';

cfg.design = [

1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9<tel:9%2010%201%202%203%204%205%206%207%208%209> 10 % subject number

1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 ]; % condition number

cfg.uvar = 1; % "subject" is unit of observation

cfg.ivar = 2; % "condition" is the independent variable

stat = ft_freqstatistics(cfg, EEGa{:}, EEGm{:});




The function ft_freqstatistics runs but the stats results are strange.
My stats.stat is always -inf
and stats.prob always 0

What might be the problem?


Thanks and all the best
Caroline




Von meinem iPhone gesendet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20121111/49ca99c7/attachment-0001.html>


More information about the fieldtrip mailing list