Mass Univariate ERP Toolbox v2017-03-27 from EEGLAB repository with patches for Pearson correlation. It also contains some additional fixes and enhancements over original code. Please note, that this base version a bit differ from upstream toolbox version.
MATLAB functions for analyzing and visualizing large numbers of t-tests performed on event-related potential data.
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
- 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:
This toolbox modification is designed to run permutation tests on t-values of Pearson correlation between ERP data and custom data. Two variants of permutation tests for correlations were implemented so far:
- Cluster-based permutation test on t-values of Pearson correlation (in
clustGND
and itsclust_perm1
) - tmax permutation test on t-values of Pearson correlation (in
tmaxGND
and itsmxt_perm1
)
-
In MATLAB open EEGLAB and load all relevant datasets to initialize
ALLEEG
variable. -
Initialize GND variable (
auto_bins
option will automatically create bins, or you can usebin_info2EEG
for proper solution):GND=sets2GND(ALLEEG,'bsln',NaN,'auto_bins',1);
-
Define
GND.corelate
values for correlations with ERP data.GND.corelate
must beN
x1
size vector, whereN
is number of EEG datasets (participants). E.g. for ten EEG datasets:GND.corelate=[9.2 2.8 4.3 8.1 5.9 6.1 7.2 5.5 4.9 3.9 ]';
-
After adding
GND.corelate
, it is recommended to updateGND
structure to recalcuteGND.grands_t
by replacing Student t-values into Pearson correlation t values, and to addGND.grands_r
with Pearson correlation r values :GND=grandsGND(GND); % update GND structure, including GND.grands_t and GND.grands_r field
After this update, you will see different lower graphics in
gui_erp(GND)
. However this was not mandatory for permutations. -
If
GND.corelate
defined and is not empty, then you can run some permutation test on t-values of Pearson correlation (IfGND.corelate
is empty or does not exist, then permutation test will be run on Student t-values!)GNDc=clustGND(GND,1); % cluster-based permutation test
GNDt=tmaxGND(GND,1); % t-max permutation test
-
Any time later you can visualize GND and permutations results by executing:
GND=grandsGND(GND); % update GND structure, including GND.grands_t and GND.grands_r field
gui_erp(GND); % grand averages, topographics...
sig_raster(GND,1,'use_color','rgb');
-
If later you want to run original permutation test on Student t-values, please rename/remove
GND.corelate
field. After moving this field away, remember to updateGND
structure byGND=grandsGND(GND);
.
Patches to run permutation tests on t-values of Pearson correlation made by M. Baranauskas for scientific research. This modified toolbox version was used in these published works:
http://openwetware.org/wiki/Mass_Univariate_ERP_Toolbox
DISCLAIMER: The Mass Univariate ERP toolbox is written and released for research purposes only with no guarantee of suitability for any particular purpose. This software, or data obtained from this software, should not under any circumstances be used for clinical purposes.