[FieldTrip] questions about power spectrum analysis and bootstrp

WanYu Hsu wanyu at gazzaleylab.ucsf.edu
Mon Apr 4 20:15:12 CEST 2016


Hi community,

I am recently running EEG power spectrum analysis.

For some reason, I wanted to run the analysis with bootstrapped trials.
Is there anyway to apply bootstrap with ft_freqanalysis?
I tried adding bootstrap option in ft_sourceanalysis to ft_freqanalysis,
but it doesn't work.

cfg = [];
cfg.foi         = 2:30;
cfg.method = 'mtmconvol';
cfg.taper     = 'hanning';
cfg.keeptrials = 'no';
cfg.t_ftimwin  = 3.2 ./ cfg.foi;
cfg.toi            = -0.5:0.01:0.6;
cfg.output      = 'powandcsd';
cfg.bootstrap = 'yes';
cfg.numbootstrap  =  25;
% cfg.trials = 'all';
freq2{s} = ft_freqanalysis(cfg, data_concat_TFR(s));

Any help would be appreciated.

Best,
WanYu Hsu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20160404/f57203af/attachment-0001.html>


More information about the fieldtrip mailing list