/dbc2019rerps

regression-based waveform estimation analysis of Delogu, Brouwer, and Crocker (2019, Brain and Cognition)

Primary LanguagePythonApache License 2.0Apache-2.0

About

This implements the regression-based waveform estimation (rERP) analysis detailed in:

Brouwer, H., Delogu, F., and Crocker, M. W. (2021). Splitting Event-Related Potentials: Modeling Latent Components using Regression-based Waveform Estimation. European Journal of Neuroscience, 53, pp. 974-995. doi: 10.1111/ejn.14961

which is applied to the ERP data reported in:

Delogu, F., Brouwer, H., and Crocker, M. W. (2019). Event-related potentials index lexical retrieval (N400) and integration (P600) during language comprehension. Brain and Cognition, 135. doi: 10.1016/j.bandc.2019.05.007

Getting started

Clone this repository, download the data files (see Releases) and decompress them in the repository folder.

Requirements

To run the analysis, you need:

  • A recent version of Python 3, with recent versions of:
    • NumPy
    • pandas
    • SciPy
    • Matplotlib
  • GNU Make (optional)

Usage

To build the rERP analysis, including all graphs and time-window averages:

$ make analysis

To make density plots for the ratings:

$ make ratings

To undo everything:

$ make clean