-
Notifications
You must be signed in to change notification settings - Fork 709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plot of ft_freqanalysis differ if cfg.keeptrials were set to 'yes' versus 'no' #670
Comments
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. |
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 |
If "first averaging, then baseline correcting" is the correct way, then how to perform statistics? |
According to the tutorial, it seems that I need to add
when calling
ft_freqanalysis
if I want to perform some statistics usingft_freqstatistics
.But I found that before I set
keeptrials
to 'yes' and after, the figure plotted viaft_singleplotTFR
have much differences. Is that OK? Which should I believe to be true?The text was updated successfully, but these errors were encountered: