Implementation of the meanlogratio for TFR - #14205
Conversation
…or TFR baselining
|
Hello! 👋 Thanks for opening your first pull request here! ❤️ We will try to get back to you soon. 🚴 |
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Introduced a new baselining mode for EpochsTFR.
|
... ahh I should have read more closely, this is draft and you're still adding stuff. Sorry about that! Feel free to |
Added noqa comment to docstring for line length compliance.
|
Okay for some reason it won't let me push to your branch despite you having ticked the "allow maintainers to make edits" box, and it's difficult to iterate in the GitHub file editor. Let me know if you want me to open a quick PR to fix the |
|
Just added text in "20_sensors_time_frequency" |
FIX: Fix reST
|
🎉 Congrats on merging your first pull request! 🥳 Looking forward to seeing more from you in the future! 💪 |
|
Thanks, @virvw! |
A recent paper advocated an alternative baselining in time-frequency analysis.
Kinley, I., Roberts, R. P., Meltzer, J. A., & Addis, D. R. (2026). Spectral change or Jensen gap? Log-ratio baseline correction for time-frequency M/EEG is negatively biased. Journal of Neuroscience Methods, 110826.
Now, whenever baselining a TFR is needed, an additional option for the
modeorbaseline_modeis "meanlogratio" effectively computingThis was verified and replicated against the original paper on simulated and MNE sample data.
KinleyEtAl2026_main-analysis_mne-ized_v1.py