<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Dear Mick,
<div class=""><br class="">
</div>
<div class="">Indeed, if you apply a baseline correction only while plotting the the TFR it could be that you get different results when running statistics on the non-baseline corrected data. </div>
<div class=""><br class="">
</div>
<div class="">You can apply a baseline correction on your data prior to running the statistical analysis by using ft_freqbaseline to your ‘diff’ structure with cfg.baseline and cfg.baselinetype having the same values as you used while plotting.</div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class=""><br class="">
</div>
<div class="">Jim</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 29 Jul 2015, at 15:55, <a href="mailto:mick.lehmann@uzh.ch" class="">
mick.lehmann@uzh.ch</a> wrote:</div>
<br class="Apple-interchange-newline">
<div class=""><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" class=""><font face="Verdana, Arial, Helvetica, sans-serif" class="">Dear Fieltrippers,</font>
<div style="font-family: Verdana, Arial, Helvetica, sans-serif;" class=""><br class="">
</div>
<div style="font-family: Verdana, Arial, Helvetica, sans-serif;" class="">yesterday I addressed this mailing list with an issue regarding the baseline correction for time frequency analysis. While plotting a comparison of two conditions revealed exactly the
results I've expected, the statistic didn't at all. Regardless of electrode, time window and freq range, the comparison of the two conditions was significantly different (with t-values between 8 and 10 and p < 0.001). Digging a little deeper, the main difference
between the script for plotting and the one for stat analysis is that in for the figure, I've to indicate again the baselinewindow and the baselinetype:</div>
<div style="font-family: Verdana, Arial, Helvetica, sans-serif;" class=""><br class="">
</div>
<div style="font-family: Verdana, Arial, Helvetica, sans-serif;" class=""><br class="">
</div>
<div class="">
<div style="" class=""><font face="Verdana, Arial, Helvetica, sans-serif" class="">diff = gaTF_Cond1;</font></div>
<div style="" class=""><font face="Verdana, Arial, Helvetica, sans-serif" class="">diff.powspctrm = (</font><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12.8000001907349px;" class="">gaTF_Cond1</span><font face="Verdana, Arial, Helvetica, sans-serif" class="">.powspctrm
- </font><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12.8000001907349px;" class="">gaTF_Cond2</span><font face="Verdana, Arial, Helvetica, sans-serif" class="">.powspctrm);</font></div>
<div style="" class=""><font face="Verdana, Arial, Helvetica, sans-serif" class=""><br class="">
</font></div>
<div style="" class=""><font face="Verdana, Arial, Helvetica, sans-serif" class=""><br class="">
</font></div>
<div style="" class=""><font face="Verdana, Arial, Helvetica, sans-serif" class="">cfg = [];</font></div>
<div style="" class=""><font face="Verdana, Arial, Helvetica, sans-serif" class=""><b class="">cfg.baseline = [-1 -.1];</b></font></div>
<div style="" class=""><font face="Verdana, Arial, Helvetica, sans-serif" class=""><b class="">cfg.baselinetype = 'db'; </b></font></div>
<div class=""><font face="Verdana, Arial, Helvetica, sans-serif" class="">cfg.maskstyle = 'saturation';</font></div>
<div class=""><font face="Verdana, Arial, Helvetica, sans-serif" class=""><span class="Apple-tab-span" style="white-space:pre"></span></font></div>
<div style="" class=""><font face="Verdana, Arial, Helvetica, sans-serif" class="">cfg.zlim = [-3 3];<span class="Apple-tab-span" style="white-space:pre">
</span></font></div>
<div style="" class=""><font face="Verdana, Arial, Helvetica, sans-serif" class="">cfg.ylim = [2 25]; </font></div>
<div class=""><font face="Verdana, Arial, Helvetica, sans-serif" class="">cfg.xlim = [-1 2]; </font></div>
<div class=""><font face="Verdana, Arial, Helvetica, sans-serif" class="">cfg.channel = {'all'};</font></div>
<div class=""><font face="Verdana, Arial, Helvetica, sans-serif" class="">cfg.layout = 'C:\Users\MickLehmann\Documents\Emo_React_EEG\FieldTrip\Scripts\egi128_GSN_HydroCel3.sfp';</font></div>
<div class=""><font face="Verdana, Arial, Helvetica, sans-serif" class="">cfg.interactive = 'yes'</font></div>
<div class=""><font face="Verdana, Arial, Helvetica, sans-serif" class="">ft_multiplotTFR(cfg,diff); </font></div>
</div>
<div class=""><font face="Verdana, Arial, Helvetica, sans-serif" class=""><br class="">
</font></div>
<div class=""><font face="Verdana, Arial, Helvetica, sans-serif" class="">Runningit like this, the figure looks fine. However, if I switch off the bold part, the figure is dark red (as the stat analysis would suggest). </font></div>
<div class=""><font face="Verdana, Arial, Helvetica, sans-serif" class=""><br class="">
</font></div>
<div class=""><font face="Verdana, Arial, Helvetica, sans-serif" class="">In the statistic script, I don't indicate the baseline again and I've no clue how to implement it. Do you think that could be the problem and has anybody a suggestion how to address the
problem? </font></div>
<div class=""><font face="Verdana, Arial, Helvetica, sans-serif" class=""><br class="">
</font></div>
<div class=""><font face="Verdana, Arial, Helvetica, sans-serif" class="">If that is actually the main issue then I'm hardly the first encountering this problem.</font></div>
<div class=""><font face="Verdana, Arial, Helvetica, sans-serif" class=""><br class="">
</font></div>
<div class=""><font face="Verdana, Arial, Helvetica, sans-serif" class="">Kind regards,</font></div>
<div class=""><font face="Verdana, Arial, Helvetica, sans-serif" class="">Mick</font></div>
<div class=""></div>
</font>_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="mailto:fieldtrip@donders.ru.nl" class="">fieldtrip@donders.ru.nl</a><br class="">
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>