[FieldTrip] Baseline Correction using 'relchange' or 'db'

mick.lehmann at uzh.ch mick.lehmann at uzh.ch
Wed Jul 29 12:48:47 CEST 2015


Dear Stephan,

the whole script with the designmatrix looks as follows. It is a within-subject design with two conditions. 

load ga_TFCond1
load ga_TFCond2
load neighbours

cfg = [];
cfg.channel          = 'all';
cfg.latency          = [0 2];
cfg.avgovertime      = 'yes';
cfg.frequency        = [5 7];
cfg.avgoverfreq      = 'yes';
cfg.method           = 'montecarlo'; 
cfg.statistic        = 'ft_statfun_depsamplesT';
cfg.correctm         = 'cluster';
cfg.clusteralpha     = 0.05;
cfg.clusterstatistic = 'maxsum';
cfg.minnbchan        = 2;
cfg.tail             = 0;
cfg.clustertail      = 0;
cfg.alpha            = 0.05;
cfg.numrandomization = 500;
cfg.neighbours       = neighbours;


subj = 20;
design = zeros(2,2*subj);
for i = 1:subj
  design(1,i) = i;
end
for i = 1:subj
  design(1,subj+i) = i;
end
design(2,1:subj)        = 1;
design(2,subj+1:2*subj) = 2;

cfg.design   = design;
cfg.uvar     = 1;
cfg.ivar     = 2;


stat = ft_freqstatistics(cfg, ga_TFCond1, gaTF_Cond2);


Thanks a lot for your efforts!

Kind regards,
Mick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150729/6bb07361/attachment-0002.html>


More information about the fieldtrip mailing list