Comments (4)
statistics needs repetitions to estimate the variance. Plotting needs an average. When you give trials to the plotting code instead of an average, it should compute an average on the fly, which should not be different from the average that is computed in freqanalysis itself.
Please be specific in which tutorial the problem applies and if possible upload screen shots that show the difference.
from fieldtrip.
cfg = [];
cfg.pad = 'nextpow2';
% cfg.keeptrials = 'yes';
cfg.output = 'pow';
cfg.foi = 2: 140;
cfg.toi = -0.2: 0.01: 0.6;
cfg.method = 'mtmconvol';
cfg.taper = 'hanning';
cfg.t_ftimwin = ones(size(cfg.foi)) * 0.1;
cfg.trials = ctrl;
TFR_ctrl = ft_freqanalysis(cfg, epoch_data);
cfg = [];
cfg.baseline = [-0.2, 0.05];
cfg.baselinetype = 'db';
cfg.zlim = [-4, 4];
figure;
ft_singleplotTFR(cfg, TFR_ctrl);
But with cfg.keeptrials = 'yes'
, I've got:
All others are the same.
from fieldtrip.
with keeptrials = 'yes', the baseline correction is applied to every single trial, with keeptrials = 'no', the baseline correction is only applied to the average. Since the baseline operation that you have specified is the result of a division, this yields different results. In general, first averaging, then baseline correcting makes more sense
from fieldtrip.
If "first averaging, then baseline correcting" is the correct way, then how to perform statistics?
from fieldtrip.
Related Issues (20)
- function ft_singleplotTFR output HOT 1
- Document and implement OPM coregistration on basis of only Polhemus 3D tracker. HOT 4
- deal with FieldLine smart helmet sensor localization errors HOT 3
- Problem with importing MEG datasets ds003352 & ds003922 with File-IO HOT 8
- Maxfilter issue when importing MEG datasets ds004276 & ds004483 with File-IO HOT 5
- Deal with FieldLine v3 recordings in which the sensor localization was not successful and the channel names are not unique. HOT 1
- Fieldtrip-SimBio pipeline on macOS with Apple silicon - calc_stiff_matrix_val.mexmaca64 is missing HOT 5
- FIF import issue HOT 2
- CTF data in BIDS format results in inconsistent channel names HOT 11
- Consider reducing the .git history size by removing large binary blobs HOT 1
- Iso2Mesh External Toolbox missing cork.exe HOT 2
- The `ft_read_event` function doesn't work for '.nirs' files due to a repeat key-value pair in function code. HOT 1
- Inconsistency between stat.mask and p-values in ft_freqstatistics HOT 2
- Inconsistency between stat.mask and p-values in ft_freqstatistics HOT 5
- Source localization now require optimization toolbox HOT 4
- ft_selectdata failure HOT 4
- Beamforming oscillatory responses in combined MEG/EEG data HOT 3
- Dipole fitting of combined MEG/EEG data
- EEG inverse mode; HOT 3
- ft_rejectvisual failure HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fieldtrip.