StaR: An EEGLAB Framework for the Measure Projection Toolbox (MPT) Statistical Analyses to be Performed in R

  • Yannick RoyEmail author
  • Jean-Claude Piponnier
  • Jocelyn Faubert
Conference paper
Part of the Lecture Notes in Electrical Engineering book series (LNEE, volume 478)


EEGLAB, a widely used toolbox in MATLAB (The Mathworks, Inc.), uses Independent Component Analysis (ICA) to decompose the EEG signal into sub-signals, and localizes brain sources of those sub-signals prior to independent component (IC) clustering for group study. In 2013, the Measure Projection Toolbox (MPT) was introduced as a new data-driven IC clustering toolbox for EEGLAB. Despite the numerous features and advantages offered by EEGLAB and the MPT, they both have limitations for statistical analyses with more than two independent variables. In order to work around those limitations, this paper introduces StaR, an EEGLAB framework for the MPT statistical analyses to be performed in R. StaR initially exports the data from different clusters generated by the MPT for different measures of interest (e.g., Event-Related Potentials (ERPs) and Event-Related Spectral Perturbations (ERSPs)) and formats the data such that further statistical analyses can be performed in R. Once in R, StaR uses linear mixed models as its default method to better handle missing values and intra-subject variability. Finally, StaR brings the results back into MATLAB to plot the results with the well-known and easy to interpret EEGLAB graphics. To make the whole process easy, StaR also offers an intuitive user interface that integrates into EEGLAB’s menu.


EEG EEGLAB Measure projection toolbox Mixed models R 


  1. 1.
    Delorme, A., Makeig, S.: EEGLAB: an open source toolbox for analysis of single-trial EEG dynamics including independent component analysis. J. Neurosci. Methods 134, 9–21 (2004). Scholar
  2. 2.
    Hyvärinen, A., Oja, E.: Independent component analysis: algorithms and applications. Neural Netw. 13, 411–430 (2000). Scholar
  3. 3.
    Oostenveld, R., Delorme, A., Makeig, S.: DIPFIT: equivalent dipole source localization of independent components (2003)Google Scholar
  4. 4.
    Chung, J.W., Ofori, E., Misra, G., Hess, C.W., Vaillancourt, D.E.: Beta-band activity and connectivity in sensorimotor and parietal cortex are important for accurate motor performance. Neuroimage 144, 164–173 (2017). Scholar
  5. 5.
    Bogost, M.D., Burgos, P.I., Little, C.E., Woollacott, M.H., Dalton, B.H.: Electrocortical sources related to whole-body surface translations during a single- and dual-task paradigm. Front. Hum. Neurosci. 10, 524 (2016). Scholar
  6. 6.
    Misra, G., Ofori, E., Chung, J.W., Coombes, S.A.: Pain-related suppression of beta oscillations facilitates voluntary movement. Cereb Cortex:bhw061. (2016)
  7. 7.
    Balkan, O., Virji-Babul, N., Miyakoshi, M., Makeig, S., Garudadri, H.: Source-domain spectral EEG analysis of sports-related concussion via measure projection analysis. 2015 37th Annual International Conference IEEE Engineering Medicine Biological Society, vol. 2015, pp. 4053–4056. IEEE (2015).
  8. 8.
    Misra, G., Wang, W., Archer, D.B., Roy, A., Coombes, S.A.: Automated classification of pain perception using high-density electroencephalography data. J. Neurophysiol. 117, 786–795 (2017). Scholar
  9. 9.
    Delorme, A., Mullen, T., Kothe, C., Akalin Acar, Z., Bigdely-Shamlo, N., Vankov, A., et al.: EEGLAB, SIFT, NFT, BCILAB, and ERICA: new tools for advanced EEG processing. Comput. Intell. Neurosci. 130714 (2011). Scholar
  10. 10.
    Onton, J., Makeig, S.: Information-based modeling of event-related brain dynamics. Prog. Brain Res. 159, 99–120 (2006). Scholar
  11. 11.
    Onton, J., Delorme, A., Makeig, S.: Frontal midline EEG dynamics during working memory. Neuroimage 27, 341–356 (2005). Scholar
  12. 12.
    Makeig, S., Debener, S., Onton, J., Delorme, A.: Mining event-related brain dynamics. Trends Cogn. Sci. 8, 204–210 (2004). Scholar
  13. 13.
    Bates, D.: Computational Methods for Mixed Models, pp. 1–29 (2010)Google Scholar
  14. 14.
    Bates, D.M., Maechler, M., Bolker, B., Walker, S.: Fitting linear mixed-effects models using lme4. J. Stat. Softw. 67, 1–48 (2015). Scholar
  15. 15.
    Benjamini, Y., Hochberg, Y.: Controlling the false discovery rate: a practical and powerful approach to multiple testing. J. R. Stat. Soc. 57, 289–300 (1995). Scholar
  16. 16.
    Makeig, S.: Auditory event-related dynamics of the EEG spectrum and effects of exposure to tones. Electroencephalogr. Clin. Neurophysiol. 86, 283–293 (1993). Scholar
  17. 17.
    Rissling, A.J., Miyakoshi, M., Sugar, C.A., Braff, D.L., Makeig, S., Light, G.A.: Cortical substrates and functional correlates of auditory deviance processing deficits in schizophrenia. Neuro Imag. Clin. 6, 424–437 (2014). Scholar
  18. 18.
    Hasenstab, K., Sugar, C.A., Telesca, D., Mcevoy, K., Jeste, S., Şentürk, D.: Identifying longitudinal trends within EEG experiments. Biometrics 71, 1090–1100 (2015). Scholar
  19. 19.
    Picton, T.W., Bentin, S., Berg, P., Donchin, E., Hillyard, S.A., Johnson, R., et al.: Guidelines for using human event-related potentials to study cognition: recording standards and publication criteria. Psychophysiology 37, 127–152 (2000). Scholar
  20. 20.
    Gibbons, R.D., Hedeker, D., DuToit, S.: Advances in analysis of longitudinal data. Ann. Rev. Clin. 6, 79–107 (2010). Scholar
  21. 21.
    Krueger, C., Tian, L.: A comparison of the general linear mixed model and repeated measures ANOVA using a dataset with multiple missing data points. Biol. Res. Nurs. 6, 151–157 (2004). Scholar
  22. 22.
    Ibrahim, J.G., Molenberghs, G.: Missing data methods in longitudinal studies: a review. TEST 18, 1–43 (2009). Scholar

Copyright information

© Springer Nature Singapore Pte Ltd. 2019

Authors and Affiliations

  • Yannick Roy
    • 1
    Email author
  • Jean-Claude Piponnier
    • 1
  • Jocelyn Faubert
    • 1
  1. 1.Visual Psychophysics and Perception Laboratory, École d’OptométrieUniversité de MontréalMontréalCanada

Personalised recommendations