<div dir="ltr"><div class="gmail_quote"><div>Dear Paul,</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><p class="m_-8349485369450946250gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"></p><p class="m_-8349485369450946250gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span style="font-family:arial,helvetica,sans-serif">3. I believe the mistake is related to calling for the baseline normalization a second time (cfg.baseline = [-0.4 -0.1] and cfg.baselinetype = 'db'). Once removing these configurations, I was able to use singleplotTFR fine. Would this produce the errors reported earlier?</span></p></div></blockquote><div><br></div><div>Yes. log(x) when x<0 will yield complex results. So don't do dB baseline more than once.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><p class="m_-8349485369450946250gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><font face="arial, helvetica, sans-serif" size="2">Finally, if the error was related to the aforementioned seconding calling of baseline normalization, and assuming removing it is the correct solution, is it best to perform a baseline normalization following ft_freqanalysis if the goal is to eventually move onto group-differences using the permutation method?</font></p></div></blockquote><div><br></div><div>This depends on the exact details of your experiment. In general, if you're indeed testing differences between participants, you will indeed want to apply some form of correction for overall power differences due to distance to the sensors etc.</div><div><br></div><div>Cheers,</div><div>Eelke</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><p class="m_-8349485369450946250gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><font face="arial, helvetica, sans-serif" size="2"><br></font></p><p class="m_-8349485369450946250gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><font face="arial, helvetica, sans-serif" size="2">Thank you again for your help.</font></p><p class="m_-8349485369450946250gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><font face="arial, helvetica, sans-serif" size="2">Paul</font></p><p class="m_-8349485369450946250gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier"><br></p></div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div></div>