Code covered by the BSD License  

Highlights from
Mass Univariate ERP Toolbox

Be the first to rate this file! 80 Downloads (last 30 days) File Size: 257 KB File ID: #29274
image thumbnail

Mass Univariate ERP Toolbox



04 Nov 2010 (Updated )

Functions for performing and visualizing mass univariate analyses of event-related potentials.

| Watch this File

File Information

The Mass Univariate ERP Toolbox is a freely available set of MATLAB functions for performing mass univariate analyses of event-related potentials (ERPs), a noninvasive measure of neural activity popular in cognitive neuroscience. A mass univariate analysis is the analysis of a massive number of simultaneously measured dependent variables via the performance of univariate hypothesis tests (e.g., t-tests). Savvy corrections for multiple comparisons are applied to make spurious findings unlikely while still retaining a useful degree of statistical power. The advantages of mass univariate analyses include: reduced need for a priori defined time windows/regions of interest, discovery of unexpected effects even when a priori time windows/regions of interest are available, and greater spatial and temporal resolution than conventional mean time window analyses. The disadvantages of mass univariate analyses are that they lose some statistical power due to correction for multiple comparisons and some popular corrections for multiple comparisons are not guaranteed to work or may not provide the degree of certainty provided by selective analyses of a priori time windows/regions of interest. Currently the toolbox supports within-subject and between-subject t-tests with false discovery rate controls and control of the family-wise error rate via permutation tests. This toolbox was produced by members of the Kutaslab of the Department of Cognitive Science at the University of California, San Diego. If you use the toolbox to perform analyses or to produce figures used in a publication, please cite the following article: Groppe, D.M., Urbach, T.P., Kutas, M. (2011) Mass univariate analysis of event-related brain potentials/fields I: A critical tutorial review, Psychophysiology, 48(12) pp. 1711-1725, DOI: 10.1111/j.1469-8986.2011.01273.x. Documentation and a tutorial for using the code are available here:


Compare Structures inspired this file.

Required Products Statistics Toolbox
MATLAB release MATLAB 7.8 (R2009a)
Other requirements The toolbox relies on the following EEGLAB functions: cbar.m finputcheck.m icadefs.m readlocs.m
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
01 Feb 2013 David Groppe

Could should now be compatible with Matlab R2012.

30 Jun 2012 David Groppe

Please note the updated code. I don't think Mathworks alerts "watchers" of this file when it is updated (only when people add comments).

10 May 2012 ahmed albakri


10 Nov 2010

Unnecessary directory information removed from zip file.

15 Nov 2010

Function erplab2GND.m was added so that this code can be used with the ERPLAB MATLAB toolbox. A few minor modifications to other functions were made as well.

04 Dec 2010

sig_wave.m and plot_wave.m were added to toolbox to help data visualization. A few minor modifications to other functions were made as well.

10 Dec 2010

Due to rounding errors, mxt_perm1.m could produce inaccurate within-subject p-values for very small sample sizes (e.g., 3 participants). This has been fixed.

10 Mar 2011

Several minor bug fixes and bin_info2EEG.m can now operate on continuous data. See toolbox wiki for full details.

23 Mar 2011

decimateGND.m now works on non-Kutaslab data and has 'save_GND' option.

04 Apr 2011

All functions should now be compatible with Windows.

11 Apr 2011

save_matmk.m was accidentally omitted from the last update.

22 Apr 2011

bin_info2EEG.m can now work on EEG variables without an EEG.event(x).duration field. tfdrGND and tfdrGRP now stores FDR corrected p-values in GND and GRP variable for BH and BY FDR control algorithms.

24 May 2011

save_erp.m and save_matmk.m were not fully compatible with Windows but now should be (thanks Elisa Filevich!). bin_opGRP.m was not working properly for some group orderings and has been fixed.

26 Jun 2011

Cluster-based permutation tests added to toolbox. Function for GFWER control added.

06 Sep 2011

bin_info2EEG.m fixed. New 'bin*' elements of had wrong bin #s and the function wouldn't work if EEG.epoch(#).eventtype was numeric. These problems should not have affected results from the toolbox since it ignores the field.

12 Dec 2011

Cluster-based permutation tests made recursiveless and better able to handle many comparisons by Amy Guthormsen.

05 Mar 2012

sig_raster.m can now use a temperature scale to represent graded values of significance (in microvolts or t-scores).

26 Jun 2012

Function crashed or could assign incorrect EEG.epoch info (e.g. EEG.epoch(x).latency) to a bin event when run on epoched data with more than one event per epoch. Thanks to Clemens Maidhof for alerting me to this.

31 Jan 2013

topoplotMK.m modified to be compatible with Matlab R2012.

11 Mar 2013

spatial_neighbors.m updated to estimate head radius from electrode locations. This makes it easier to translate max_dist parameter for cluster-based tests into centimeters.

29 Mar 2013

Updated to be compatible with Matlab R2013a (thanks Aaron Newman) and minor gui_erp.m visualization bug fix.

02 May 2013

Minor fix to 'bsln' option of sets2GND.m

Contact us