Journal of Neuroscience MethodsNeurosciencePeer-reviewed journal article
lmeEEG: Mass linear mixed-effects modeling of EEG data with crossed random effects
Antonino VisalliiD, Maria MontefineseiD, Giada VivianiiD, Livio FinosiD, Antonino VallesiiD, Ettore AmbrosiniiD
Abstract
BackgroundMixed-effects models are the current standard for the analysis of behavioral studies in psycholinguistics and related fields, given their ability to simultaneously model crossed random effects for subjects and items. However, they are hardly applied in neuroimaging and psychophysiology, where the use of mass univariate analyses in combination with permutation testing would be too computationally demanding to be practicable with mixed models. New methodHere, we propose and validate an analytical strategy that enables the use of linear mixed models (LMM) with crossed random intercepts in mass univariate analyses of EEG data (lmeEEG). It avoids the unfeasible computational costs that would arise from massive permutation testing with LMM using a simple solution: removing random-effects contributions from EEG data and performing mass univariate linear analysis and permutations on the obtained marginal EEG. ResultslmeEEG showed excellent performance properties in terms of power and false positive rate. Comparison with existing methodslmeEEG overcomes the computational costs of standard available approaches (our method was indeed more than 300 times faster). ConclusionslmeEEG allows researchers to use mixed models with EEG mass univariate analyses. Thanks to the possibility offered by the method described here, we anticipate that LMM will become increasingly important in neuroscience. Data and codes are available at osf.io/kw87a. The codes and a tutorial are also available at github.com/antovis86/lmeEEG.
- Citations
- 39
- FWCI
- 7.92
- Field percentile
- top 1%
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- MELD: Mixed Effects for Large Datasets
Dylan M. Nielson, Per Benjamin Sederberg·PLoS ONEPeer-reviewed·Aug 22, 2017
- Comparing Methods for Mass Univariate Analyses of Human EEG: Empirical Data and Simulations
Anna‐Lena Tebbe, Christian Panitz, Andreas Keil·Journal of Neuroscience MethodsPeer-reviewed·Nov 21, 2025
- Flexible Multi-Step Hypothesis Testing of Human ECoG Data using Cluster-based Permutation Tests with GLMEs
Seth D. König, Sandra E. Safo, … David Darrow·NeuroImagePeer-reviewed·Feb 27, 2024
- Precise temporal localisation of M/EEG effects with Bayesian generalised additive multilevel models
Ladislas Nalborczyk, Paul‐Christian Bürkner·bioRxiv·Aug 29, 2025
- MEG/EEG group study with MNE: recommendations, quality assessments and best practices
Mainak Jas, Eric Larson, … Alexandre Gramfort·Frontiers in NeurosciencePeer-reviewed·Aug 6, 2018
- Towards a dynamical understanding of microstate analysis of M/EEG data
Nikola Jajcay, Jaroslav Hlinka·NeuroImagePeer-reviewed·Sep 15, 2023