Computational Intelligence and Neuroscience

Volume 2011, Article ID 831409, 11 pages

http://dx.doi.org/10.1155/2011/831409

## LIMO EEG: A Toolbox for Hierarchical LInear MOdeling of ElectroEncephaloGraphic Data

^{1}Division of Clinical Neurosciences, SFC Brain Imaging Research Centre, SINAPSE Collaboration, University of Edinburgh, Western General Hospital, Edinburgh EH4 2XU, UK^{2}Inserm; Imagerie Cérébrale et Handicaps Neurologiques UMR 825, 31059 Toulouse, France^{3}Université de Toulouse, UPS, Imagerie Cérébrale et Handicaps Neurologiques UMR 825, 31059 Toulouse, France^{4}Centre for Cognitive Neuroimaging (CCNi), Institute of Neuroscience and Psychology, University of Glasgow, Glasgow G12 8QB, UK

Received 21 September 2010; Revised 23 November 2010; Accepted 31 December 2010

Academic Editor: Sylvain Baillet

Copyright © 2011 Cyril R. Pernet et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

#### Abstract

Magnetic- and electric-evoked brain responses have traditionally been analyzed by comparing the peaks or mean amplitudes of signals from selected channels and averaged across trials. More recently, tools have been developed to investigate single trial response variability (e.g., EEGLAB) and to test differences between averaged evoked responses over the entire scalp and time dimensions (e.g., SPM, Fieldtrip). LIMO EEG is a Matlab toolbox (EEGLAB compatible) to analyse evoked responses over all space and time dimensions, while accounting for single trial variability using a simple hierarchical linear modelling of the data. In addition, LIMO EEG provides robust parametric tests, therefore providing a new and complementary tool in the analysis of neural evoked responses.

#### 1. Introduction

LIMO EEG (https://gforge.dcn.ed.ac.uk/gf/project/limo_eeg/) is a toolbox for the statistical analysis of physiological data. The main goal of the toolbox is the analysis and formal testing for experimental effects at all electrodes/sensors and all time points of magneto- and electro encephalography (MEEG) recordings. This contrasts with traditional approaches that select peaks or mean amplitudes of averaged evoked responses. The toolbox is implemented in Matlab (http://www.mathworks.com/) and requires the Matlab statistical toolbox (free alternative to these functions can be found on the LIMO EEG server and corresponds to adapted version of Octave functions (http://www.gnu.org/software/octave/). The data structure and visualization makes use of the EEGLAB Matlab toolbox [1] (http://sccn.ucsd.edu/eeglab/); therefore LIMO EEG is better used as a plug-in of EEGLAB, although the statistical analyses can be performed independently. Similarly, the toolbox is primarily designed for EEG data although both EEGLAB and LIMO EEG can process MEG data.

The toolbox offers a comprehensive range of statistical tests (Table 1), including many popular designs (ANOVAs, linear regressions, ANCOVAs). Some of the statistical methods, that is, massive univariate general linear analyses [2, 3] and spatiotemporal clustering for multiple comparisons correction [4–6] have existed for several years whereas others like bootstrapping were introduced only recently [7–9].

Contrary to other toolboxes dedicated to the analysis of event related potentials (ERPs), LIMO EEG deals both with within-subject variance (i.e., single trial analyses) and between-subject variance (like in e.g., SPM [2, 3]). Using LIMO EEG, data are analyzed using a hierarchical general linear model where parameters of a GLM are estimated for each subject at each time point and each electrode independently (1st level analyses). Estimated parameters from the first level analyses are then integrated across subjects (2nd level analysis—Figure 1). This hierarchical modelling of the data is similar to the one used to analyze PET/fMRI data (SPM, FSL, BrainVoyager, etc.). Our general linear approach of analyzing MEEG data thus complements others which also rely on linear modeling but focus on averaged event related data [2] rather than single trials, or factorize time [3, 8], or both, rather than using time as a natural dimension.

#### 2. Method

##### 2.1. Hierarchical General Linear Model for MEEG Data: 1st Level

MEEG data form 3 dimensional matrices. Following the EEGLAB convention, the 1st dimension is space (electrodes or sensors), the 2nd dimension is time and the 3rd and last dimension is trials. The analysis is performed electrode per electrode such that the data form a 2-dimensional matrix with trials and time frames (or time points). For each trial we define the experimental conditions by a 2 dimensional design matrix with rows (for trials) and columns; each column codes for one condition or a covariate. In the current implementation, we consider each trial to be unique and therefore the model is similar to running a one-way ANOVA or ANCOVA. The model therefore follows (1) with the estimated regression parameters (a matrix) and the error term (a matrix). The solution of the normal equations is given by inverting . In practice we estimate the parameters following (2), by fitting simultaneously all frames, one electrode at a time, to obtain the parameters of the univariate model on the diagonal of the matrix. Combining the columns of (contrast weighting) allows testing for various effects at the individual level (-tests, -tests—for details see, e.g., [10]) In LIMO EEG, the solution is given by (2) using a generalized Moore-Penrose pseudoinverse (pinv default function in Matlab [11, 12]). Thus, although the design matrices made up by LIMO EEG are almost always rank deficient (each condition is coded in one column of ), or tests are exact, that is, they give identical results to that obtained by applying a standard inverse to a full rank matrix.

##### 2.2. Hierarchical General Linear Model for MEEG Data: 2nd Level

At the second level of analysis, beta coefficients from the different conditions (or their linear combinations) obtained from each subject are analyzed across subjects to test for statistical significance. Several robust methods have been implemented in LIMO EEG at this stage. Most of the techniques described below can be found in Wilcox [13] and correspond to tests performed under H1 to compute confidence intervals and under H0 to control for multiple comparisons. Compared to standard methods, robust methods provide better probability coverage for the confidence intervals and a tighter control of the type I error. Computations presented in this section are used in LIMO EEG to provide robust confidence intervals and uncorrected values or a binary decision on significance. Computations for multiple comparisons correction are presented in the next section.

###### 2.2.1. One-Sample -Test

Whereas most ERP studies aim at comparing different experimental conditions, the GLM also allows testing for the covariation of single-trial ERPs with stimuli and cognitive factors (see e.g., Rousselet et al. [7] who tested the effect of image phase coherence across trials during a face discrimination task). A bootstrap- approach in which subjects are drawn randomly with replacement is implemented in LIMO EEG. For each bootstrap, a one-sample -test is performed on the bootstrap sample and the value is stored. These values provide an approximation of the distribution under H0 and are used to estimate the alpha/2 and 1-alpha/2 quantiles. The values are then simply the average number of times the values obtained from the original data are above or below the bootstrapped quantiles. Finally, confidence intervals around the mean can be computed following (3): where CI is the confidence interval, and are the critical values obtained from the sorted bootstrapped values with, rounded to the nearest integer, , is sample standard deviation, is the square root of the number of observations.

###### 2.2.2. Two-Samples -Test

To compare ERPs from two independent groups of subjects, we use a percentile bootstrap in which subjects from each group are sampled independently with replacement. For each bootstrap, we obtain 2 new independent samples and the mean difference between the two groups is computed. This method therefore tests differences under H1, that is, it tests that the mean of gp1 is different from the mean of gp2. After sorting these differences in ascending order, confidence intervals take the values, and with and defined as above. If 0 is included in the CI, the difference between samples is not significant. Finally, the value is the smallest value of either the averaged number of times the observed difference is above zero or, one minus this average.

###### 2.2.3. Paired -Test

The comparison of two sets of estimated parameters from the same group of subjects follows the procedure described for the two-sample -test. However, because data are now paired, we sample subjects with replacement, to keep pairs of ERPs together and therefore preserve the intrasubject variance.

###### 2.2.4. Regression Analysis

Regression analyses of ERP data allow assessing the inter-subject variability. Such variability is useful to test hypotheses about cognitive development, aging, various impairments, and individual differences in general (see e.g., Rousselet et al. [8, 9] for an example in normal aging). The method consists in sampling with replacement matrices of ERPs (electrodes × time frames), being the number of subjects. The link between subjects and predictors is maintained, so for simplicity we sample trial indices. The estimated regression parameters s are computed for each bootstrap and sorted in ascending order. For a simple regression, 599 bootstraps are performed and the 95% confidence interval is , with and taking special values depending on the number of observations. For this simple case, 599 bootstraps have been shown to be enough to control the type I error rate [13]. For multiple regressions, a percentile bootstrap is used in conjunction with the Bonferroni inequality, and the confidence intervals are defined for each regressor as , with No value can be computed with this technique but a binary decision on the statistical significance is obtained: a regression coefficient is significant if the confidence interval does not contain 0. Compared to other techniques, the modified bootstrap has been shown to perform well under heteroscedasticity but also if the data (subjects) are sampled from a nonnormal distribution [13].

###### 2.2.5. ANOVA

Contrary to the other designs, only bootstraps under H0 are used to compute values. The analysis relies on standard ordinary least squares (OLS) and, for repeated measure ANOVAs, sphericity is accounted for by a multivariate approach (Hotelling test for repeated factors and Hotelling generalized for within by between interactions; both transformed into values). In a first analysis we obtain the observed values. Then we build a data driven table under H0. First we centre the data, independently for each group (-way ANOVA) or condition (repeated measure ANOVA), so that each cell of the ANOVA has a mean of zero. Second, we use the centred data to estimate the distributions under H0. We sample subjects with replacement, independently for each cell for -ways ANOVAs, or keeping the association between observations in repeated measure ANOVAs. values are obtained by sorting the bootstrap values and counting how many times the observed values are above the value. Using the same resampling as above but using the original data (i.e., under H1) we also compute the average difference between conditions allowing to construct robust confidence intervals using the techniques described for -tests.

###### 2.2.6. ANCOVA

The analysis of covariance follows the same strategy as the regression analysis: subjects’ indices are sampled with replacement to keep data, group membership and predictors together. This resampling allows us to build robust confidence intervals around the predictors. Significance tests for the group differences and the covariate effects are obtained under H0. In this case, ERP data are sampled with replacement and fit to the original design matrix, thus breaking the relationship between the data and the predictors. We use this technique to estimate the distributions of the values of group differences and covariates under H0. The values are then obtained as for ANOVAs.

#### 3. Multiple Comparisons Correction

Because tests are performed at many electrodes and time frames, multiple testing will give rise to a high number of false positives (type I error—see, e.g., Figure 2). This multiple comparison problem is independent of the type I error rate obtained independently at one electrode and one time frame using the techniques describe above. Computations described above were performed mainly under H1 and used for robust confidence intervals and uncorrected values. These techniques are complemented here by computations performed under H0, the null hypothesis of no effect, to correct for multiple testing.

This multiple testing problem is controlled in LIMO EEG using three methods, all relying on the same bootstrap procedure. For each technique described in the previous section (-tests, regression, ANOVA, ANCOVA), we sample subjects with replacement under a true (-tests, ANOVAs) or estimated (regression, ANCOVA) H0. This process is repeated B times and for each bootstrap we record (1) the maximum value (= for -tests) among all electrodes and time frames and (2) the maximum sum of significant temporal or spatial-temporal clusters. These distributions of maximum (Method 1) and maximum clusters (Methods 2 and 3) under H0 can then be used to control the type I error rate across the entire data space [14].

*Method 1 (maximum statistics). *Uses the distribution of maximum bootstrap (or ) values. The critical value of the observed sample is corrected for multiple tests by using a probability distribution of the strongest values obtained under H0 across all tests (across all electrodes and all time frames). This technique has the advantage of having an exact type I error rate [14]. However, this height threshold technique is conservative, similarly to Bonferoni and other familywise error corrections, because it is based on all the tests performed. One disadvantage of being too conservative is that, for instance, the size of a cluster of significant consecutive time frames will be smaller after correction (assuming extrema of a cluster have the lowest significant values before correction—see Figure 2) therefore possibly losing interesting information about the onsets and offsets of experimental effects. Another possibility is that this correction splits a cluster into smaller pieces because it does not take into account the spatial-temporal structure of the data. The second and third approaches use a correction based on cluster statistics and therefore overcomes this problem.

*Method 2 (spatial-temporal clustering—2D). *Uses the distribution of bootstrap clusters defined simultaneously in space and time (Figure 2). This clustering technique follows the philosophy presented in [6] and uses functions implemented in Fieldtrip (http://fieldtrip.fcdonders.nl/). An observed spatial-temporal cluster of values is statistically significant if the sum of values contained in the cluster is bigger than the threshold bootstrap cluster sum obtained under H0 (see e.g., [15, 16] for a similar approach with PET and fMRI data). Under H0, one can observe by chance clusters of significant electrodes and time frames. By recording the largest sum of cluster values for each bootstrap, we can construct the distribution of the spatial-temporal cluster values under H0 and therefore test the significance of an observed cluster value. Because the H0 distribution is not specific to a particular location in space and time, this technique automatically controls for multiple testing. Note that at variance with the maximum statistics, the correction only applies to clusters already declared significant, making the cluster correction less conservative. Finally, because in MEEG a large effect in, for example, size (e.g., a P300 event) can mask a smaller one (e.g., N170), the control is not performed on the cluster size itself but on the sum of the (or ) values inside each cluster [6]. The cluster sum statistics takes into account spatial extent and height information. Therefore, a spatially narrow cluster of effects around, for example, the N170, can survive the test by a greater density of values.

*Method 3 (temporal clustering—1D). *Combines the cluster and maximum statistic approaches. For each bootstrap obtained under H0 we first take the largest temporal cluster value (sum of or values) for each electrode and then only retain the largest one (Figure 2). By doing this for each bootstrap, we create an empirical distribution of temporal cluster values corrected in space. Again, an observed cluster will be significant if its sum is significantly bigger than the bootstrap threshold sum observed under H0. The advantage of this method over spatial-temporal clustering is the increased likelihood to reveal more spatially localized effects because temporal effects do not have to appear on groups of electrodes. It is also a convenient technique to test small groups of electrodes not necessarily spatially contiguous.

##### 3.1. Bootstrap Computations under H0 for Multiple Comparisons Correction

The bootstrap procedures described here used the same resampling as before but often on centered data (H0 is thus true) and results are used to produce a corrected distribution (Method 1) or cluster distributions (Methods 2 and 3).

###### 3.1.1. One-Sample -Test

The bootstrap procedure used to adjust the individual type I error and construct robust confidence intervals for each electrode and each frame is performed under H1. The H0 version of this bootstrap consists in centering the data and then performing one-sample -tests on centred data sampled with replacement. Because centered data have a zero mean, resampling allows us to measure variations around 0, the null hypothesis.

###### 3.1.2. Two-Samples and Paired -Tests

As for the one-sample -test, the control of the individual type I error rates and CIs are calculated under H1 by computing differences between bootstrap group or pair samples. Therefore complementary tests under H0 are carried-out for each bootstrap. For each group or pair, data are centered and next resampled and -tests computed. Because data are centered, no differences are expected (therefore testing under H0).

###### 3.1.3. Regression Analysis and ANCOVA

Subjects are randomly sampled with replacement and data are fitted to same the design matrix. This procedure thus breaks the link between the data (subjects) and the model (design matrix), and therefore allows estimating the slope(s) of the various regressors under H0. The values for the different regressors or for the group effect in ANCOVAs are recorded for each bootstrap and used to compute the empirical distributions used to correct for multiple comparisons.

###### 3.1.4. ANOVAs

Here only H0 computations are performed by centering each “cell” (each group or each condition—see above). Again, recording the values for each effect at each bootstrap allows correcting for multiple comparisons using one of the methods described above.

#### 4. Validation

##### 4.1. Low-Level Functions

In order to test the validity of the code, all statistical functions (except bootstrap and multiple comparison procedures) have been tested against Statistica and the relevant information to use each function by itself is available in a downloadable document (validation_of_the_stats.pdf) on the LIMO EEG server. For each statistical test, several low dimentional data sets have been generated and analyzed using both LIMO EEG and Statistica to ensure that LIMO EEG returns the correct , , and values. Because of the high dimensionality of MEEG data, such analysis can not be easily carried out by standard packages and the need for multiple comparisons correction does change the statistical significance of the effects. However, this simple testing allowed us and future users to easily test the low-level statistical functions of the toolbox and be certain of our implementation. Of importance, some tests return slightly different results. The main difference can be observed for the 2 sample -test. Most software (e.g., Statistica & SPSS) assume variance homogeneity by default, which is fallacious because independent groups are likely to have different variances. LIMO EEG always assumes variance inhomogeneity thus returning slightly lower values. The alternative ANOVA (limo_old_rep_anova.m) which is not accessible via the interface also returns slightly different values. By default, LIMO EEG computes repeated measures ANOVA using a Hotelling test to account for sphericity. However, a standard test can also be computed by changing one parameter when calling the random_robust.m function. In this case, sphericity is accounted for by a Hyund-Feld correction. The correction value is different from that of Statistica or SPSS, which use the initial formulation [17], whereas our implementation follows the modified, corrected formula [18].

##### 4.2. Multiple Comparisons Correction

Permutation combined with max cluster statistics have been shown to control in theory for multiple comparisons, maintaining the probability to commit a least one type I error across the entire search space at the nominal alpha level [6]. However, permutation has not yet been validated systematically in MEEG research. Thus, despite indications that permutation performs well under certain conditions involving the comparison of two groups [6], its performance remains to be tested more generally, and its application extended to other experimental designs. Bootstrap techniques are more versatile than permutation and have been developed to address many problems in psychology [13]. For instance, it is not clear how to implement a permutation test for an ANCOVA design; whereas a bootstrap test is easy to implement. Hence, bootstrap techniques offer more possibilities to MEEG researchers. However, bootstrap techniques, and their capacity to control the type I error rate, have not yet been validated in MEEG research, which is a limitation of our toolbox. Nevertheless, we report encouraging preliminary results suggesting that bootstrap techniques perform similarly to permutation in some conditions. We compared the familywise type I error rate of permutation and two bootstrap techniques associated with max cluster statistics in -tests for independent samples.

Our simulation uses the 18 subjects of the dataset provided with LIMO and each subject was used as a “population” of about 1000 trials. This dataset is ideal to validate tests of differences under H0, because it contains ERP amplitudes spanning the whole continuum from face responses to noise responses. Thus, for each subject, we sampled with replacement from the total number of trials for that subject 100 trials twice to form fake condition 1 and fake condition 2 (level 1). Then we applied 3 tests on these 2 fake conditions. Each test involved 1000 random samples. In the first two tests, the 200 trials were pulled together and two sets of 100 trials were created either by random partitioning (permutation test), or by sampling with replacement (bootstrap test). Both tests estimate H0 by random resampling. In the third test, each group of 100 trials was mean centred and bootstrap samples with replacement drawn independently from each of them (technique implemented in LIMO and validated in [13]). For each test, and for each random sample, a -test was performed to compare the groups of trials, followed by spatial-temporal clustering of values (squared values). We cluster the values because a -test is a special case of linear contrast, which is evaluated using an statistics. Also, an statistics is used for all the other GLM designs. Then we saved the maximum cluster sum, and obtained a distribution of max cluster sums under H0, which was used to assess the significance of the original -tests. So far we have conducted level 1 H0 analyses 200 times on each subject. The average number of positive tests is the type I error rate, after correction for multiple comparisons using cluster statistics. Across 18 subjects, and using 200 simulations, the type I error rate for permutation is 0.0506, with minimum 0.025 and maximum 0.085 across subjects. The type I error rate for the bootstrap test is 0.0489, min = 0.025, max = 0.08. The type I error rate for the bootstrap test with data centering is 0.0453, min = 0.025, max = 0.08. These results are very close to the nominal alpha results of 0.05. More simulations and more situations will need to be tested to compare precisely the behaviour of these techniques.

#### 5. Graphical User Interface

LIMO EEG can be called directly in the Matlab command window or via the EEGLAB menu. It comes as a fully functional graphical user interface (GUI). Each of the main steps have there own GUI: General GUI (Figure 3(a)), import of epoched data and 1st level analysis (Figure 3(b)), 2nd level analysis (Figure 3(c)), and visualization (Figure 3(d)). User do not have to call functions or type anything in the command window, everything can be obtained via interface. Each time a help button is also available for a description of each option in each GUI. In addition, we made available a data set on the LIMO EEG server which comes with a tutorial explaining how to analyse the data using there interfaces. A short example of results is given in the next section.

#### 6. Application to EEG Data and Visualization Tools

In this section, we present some results from an analysis performed on 18 subjects to illustrate the various formats in which group data can be explored and presented. This data set is downloadable as a tutorial for LIMO EEG and results represent simplified analyses of what is presented in [8]. In short, subjects of various ages discriminated between pictures of two faces, face A and face B; the noise level in the images was varied parametrically (actually a manipulation of the phase of the image). Using such design one can therefore test for differences between ERP to the two faces using a paired -test, test for an effect of the noise level using a one-sample -test, or test for an age effect on ERP noise sensitivity using regression analysis.

##### 6.1. 1st Level Analysis

For each subject we create a design matrix including face A, face B and the level of image noise (see Figure 1 top). The data are thus modelled as a weighted sum of three predictors (face A, face B and phase coherence effect) plus a constant and an error term.

##### 6.2. 2nd Level Analysis

Using the estimated parameters from each subject one can test several effects. First, we looked for differences between faces A and B using a paired -test (no significant effects, corrected with spatial-temporal clustering) by entering into the analysis the estimated beta parameters for face A and face B from all subjects. As illustrated in Figure 4 (panel A), face stimuli evoked a typical ERP (A1, tools are provided to plot robust ERPs across subjects, here the average of 20% trimmed mean ERPs with 95% CI obtained using the bootstrap standard error) and no significant differences can be observed (A2). Second, we investigated a possible effect of the stimulus phase coherence on the visual evoked response. This was performed using a one-sample -test ( corrected with spatial-temporal clustering) by entering the estimated beta parameters corresponding to this predictor. As illustrated (Figure 4—panel B), image phase coherence affects the evoked brain responses from 80 ms onward (full space/time map—B1) mainly over posterior lateral and central electrodes (topographic plot of values—B2) with the strongest effect observed on electrode C1 between 110 ms poststimulus onset and 290 ms (B3). Finally, we also investigated an effect of age on ERP phase sensitivity by performing a simple regression with age as covariate (Figure 4 panel C, corrected with spatial-temporal clustering). This analysis could be performed over the whole scalp by taking the same physical electrodes across subjects (data are presented Figure 2). The analysis can also be performed using an optimized electrode [19]. This strategy consists in selecting the electrode that shows the strongest model fit, so that we compare functionally similar electrodes across subjects. In this case, the analysis of the age effect on ERP sensitivity to noise was performed on the electrode that best modelled the data in each subject, as defined by the strongest (C1). This feature of LIMO EEG allows more flexibility in the way one combines data for group analyses. Here, results show the ERP sensitivity to image phase coherence is significantly modulated by age from 200 ms to 330 ms post stimulus onset (C2).

#### 7. Discussion

##### 7.1. Pros and Cons of a Massive Univariate Approach in MEEG

LIMO EEG relies on a massive univariate approach in which, like PET or fMRI, all possible measurements (voxels or electrode/time frames) are analyzed. This provides many advantages but also elicits some problems. On the positive side, the massive univariate approach is relatively easy to understand as it uses standard statistics, it is fully automatic, accommodates any design, and provides a full picture of electromagnetic events without having to hand pick electrodes or time frames. On the negative side, strict controls of statistical tests need to be implemented because of the multiple tests performed. Also, because analyses are performed on independent electrodes and time frames, one can miss more subtle effects that might develop over time or space, and would be picked up by multivariate [20] or multidimensional [21] approaches. However, the down side of these latter approaches is that they are much harder to interpret.

##### 7.2. Robust and Parametric

In LIMO EEG, as in any parametric statistics package, we assume data come from a type of probability distribution, and makes inferences about the parameters of these distributions. In LIMO EEG, we assume that data come from a normal or nearly normal distribution, and make an inference about the mean values. Another important feature of LIMO EEG is the use of robust statistics. Here “robust” is used in the sense that the techniques implemented in LIMO EEG show overall more power than traditional tests when assumptions (e.g., normality) are violated and when experiment effects exist (H1) thus providing better probability coverage, especially when estimating confidence intervals. Using those techniques, we also ensure a tighter control of the type I error rate (H0). Our preliminary simulation results (18 times 200 Monte-Carlo) show that using 1000 bootstraps, the mean type I error rate of our 2 samples -test is 0.0453, demonstrating that the cluster technique for multiple comparison correction offers a good control on false positives. Further simulations are needed to adequately test the type I error rate in various situations (designs/population) but this demonstrate, in principle, the validity of our method.

In LIMO EEG we limited the scope of most analyses to samples’ means via bootstrap. In fact, robust statistics allow analyzing data using various distribution estimators other than the mean. The mean is not necessarily a good estimator of the central tendency of the data, and trimmed means, median, and M-estimators can provide more satisfactory results [22, 23] (there are trimmed means options in LIMO EEG and a few stand-alone functions to do, for example, -tests on trimmed means). However, none of these estimators have been validated for MEEG data yet, hence the restriction to samples’ means.

One current limitation of our parametric approach is that first level analyses, and the GLM designs at the second level, currently rely on an OLS solution. Ideally, one can make regressions more robust using weighted least squares (WLS). However, the problem of WLS is the computation of the covariance matrix. If one wants to properly estimate how trials/conditions (1st level) or subjects/conditions (2nd level) covary, new methods must be investigated in order to account for the spatial and temporal link between data points and not merely the covariation between conditions/subjects at each time point separately. Until such a method is available, an OLS solution seems the safest option.

##### 7.3. Current Limits and Future Development

There is no real limit to the current implementation of LIMO EEG because it allows analyzing almost all kinds of designs. Limits are only related to various statistical aspects that deserve consideration. One current limit concerns the 1st level of analysis: all conditions are treated independently, which effectively corresponds to a 1 way ANOVA or a 1 way ANCOVA. However, experimental conditions could also be grouped in order to create a factorial design, thus pooling some variances together to account for interaction effects. Although our approach is valid because the estimated parameters of each condition can be combined via contrasts to reflect main effects and interactions as in a factorial design, it is likely to limit some analyses. Therefore, future versions of the toolbox will incorporate factorial variance pooling. A second limitation is the use of OLS. As mentioned above (*Robust and parametric section) *one would ideally use a WLS solution to allow non independence and heteroscedasticity between conditions. However current mathematical solutions do not exist to properly estimate the covariance matrix and until then the 1st level estimates will not be “robust”.

#### 8. Conclusion

Overall LIMO EEG provides a set of statistical tools allowing the analysis of many designs via GUI. It provides robust results which are unbiased by the selection of peaks or components. It also provides a new way to analyze data with an emphasis on effect size (robust confidence intervals), which we hope will help moving the field toward a more quantitative analysis of evoked neural responses [7].

#### Acknowledgments

This work is partially funded by ESRC: ESRC Grant RES-000-22-3209 supported G. A. Rousselet, ESRC Grant RES-062-23-1900 supported C. R. Pernet and G. A. Rousselet. Cyril R. Pernet is also funded by the SINAPSE collaboration—http://www.sinapse.ac.uk, a pooling initiative funded by the Scottish Funding Council and the Chief Scientist Office of the Scottish Executive.

#### References

- A. Delorme and S. Makeig, “EEGLAB: an open source toolbox for analysis of single-trial EEG dynamics including independent component analysis,”
*Journal of Neuroscience Methods*, vol. 134, no. 1, pp. 9–21, 2004. View at Publisher · View at Google Scholar · View at Scopus - S. J. Kiebel and K. J. Friston, “Statistical parametric mapping for event-related potentials: I. Generic considerations,”
*NeuroImage*, vol. 22, no. 2, pp. 492–502, 2004. View at Publisher · View at Google Scholar · View at Scopus - S. J. Kiebel and K. J. Friston, “Statistical parametric mapping for event-related potentials (II): a hierarchical temporal model,”
*NeuroImage*, vol. 22, no. 2, pp. 503–520, 2004. View at Publisher · View at Google Scholar · View at Scopus - J. M. Kilner, S. J. Kiebel, and K. J. Friston, “Applications of random field theory to electrophysiology,”
*Neuroscience Letters*, vol. 374, no. 3, pp. 174–178, 2005. View at Publisher · View at Google Scholar · View at Scopus - J. Kilner and K. J. Friston, “Topological Inference for EEG and MEG,”
*Annals of Applied Statistics*, vol. 4, pp. 1272–1290, 2010. View at Google Scholar - E. Maris and R. Oostenveld, “Nonparametric statistical testing of EEG- and MEG-data,”
*Journal of Neuroscience Methods*, vol. 164, no. 1, pp. 177–190, 2007. View at Publisher · View at Google Scholar · View at Scopus - G. A. Rousselet, C. R. Pernet, P. J. Bennett, and A. B. Sekuler, “Parametric study of EEG sensitivity to phase noise during face processing,”
*BMC Neuroscience*, vol. 9, article 98, 2008. View at Publisher · View at Google Scholar · View at Scopus - G. A. Rousselet, J. S. Husk, C. R. Pernet, C. M. Gaspar, P. J. Bennett, and A. B. Sekuler, “Age-related delay in information accrual for faces: evidence from a parametric, single-trial EEG approach,”
*BMC Neuroscience*, vol. 10, article 1471, p. 114, 2009. View at Publisher · View at Google Scholar · View at Scopus - G. A. Rousselet, C. M. Gaspar, C. R. Pernet, J. S. Husk, P. J. Bennett, and A. B. Sekuler, “Healthy aging delays scalp EEG sensitivity to noise in a face discrimination task,”
*Frontiers in Perception Science*, vol. 19, no. 1, 2010. View at Publisher · View at Google Scholar - K. J. Friston, J. Ashburner, S. J. Kiebel, T. E. Nichols, and W. D. Penny,
*Statistical Parametric Mapping: The Analysis of Functional Brain Images*, Academic Press, New York, NY, USA, 2007. - E. H. Moore, “On the reciprocal of the general algebraic matrix,”
*Bulletin of the American Mathematical Society*, vol. 26, pp. 394–395, 1920. View at Google Scholar - R. Penrose, “A generalized inverse for matrices,”
*Proceedings of the Cambridge Philosophical Society*, vol. 51, pp. 406–413, 1955. View at Google Scholar - R. R. Wilcox,
*Introduction to Robust Estimation and Hypothesis Testing*, Academic Press, New York, NY, USA, 2nd edition, 2005. - T. Nichols and S. Hayasaka, “Controlling the familywise error rate in functional neuroimaging: a comparative review,”
*Statistical Methods in Medical Research*, vol. 12, no. 5, pp. 419–446, 2003. View at Publisher · View at Google Scholar · View at Scopus - J. B. Poline and B. M. Mazoyer, “Analysis of individual positron emission tomography activation maps by detection of high signal-to-noise-ratio pixel clusters,”
*Journal of Cerebral Blood Flow and Metabolism*, vol. 13, no. 3, pp. 425–437, 1993. View at Google Scholar · View at Scopus - J. B. Poline, K. J. Worsley, A. C. Evans, and K. J. Friston, “Combining spatial extent and peak intensity to test for activations in functional imaging,”
*NeuroImage*, vol. 5, no. 2, pp. 83–96, 1997. View at Publisher · View at Google Scholar · View at Scopus - H. Huynh, “Some approximate tests for repeated measurement designs,”
*Psychometrika*, vol. 43, no. 2, pp. 161–175, 1978. View at Publisher · View at Google Scholar · View at Scopus - R. S. Chen and W. P. Dunlap, “A Monte Carlo study on the performance of a corrected formula for $\tilde{\epsilon}$ suggested by Lecoutre,”
*Journal of Educational and Behavioural Statistics*, vol. 19, no. 2, pp. 119–126, 1994. View at Google Scholar - J. J. Foxe and G. V. Simpson, “Flow of activation from V1 to frontal cortex in humans: a framework for defining "early" visual processing,”
*Experimental Brain Research*, vol. 142, no. 1, pp. 139–150, 2002. View at Publisher · View at Google Scholar · View at Scopus - K. J. Friston, K. M. Stephan, J. D. Heather et al., “A multivariate analysis of evoked responses in EEG and MEG data,”
*NeuroImage*, vol. 3, no. 3, pp. 167–174, 1996. View at Publisher · View at Google Scholar · View at Scopus - J. Onton and S. Makeig, “Why use ICA to decompose EEG/MEG data?” in
*Event-Related Dynamic of Brain Oscillations*, C. Neuper and W. Klimesch, Eds., Progress in Brain Research, 159, Elsevier, 2006. View at Google Scholar - R. R. Wilcox and H. J. Keselman, “Modem robust data analysis methods: measures of central tendency,”
*Psychological Methods*, vol. 8, no. 3, pp. 254–274, 2003. View at Publisher · View at Google Scholar · View at Scopus - G. A. Rousselet, J. S. Husk, P. J. Bennett, and A. B. Sekuler, “Time course and robustness of ERP object and face differences,”
*Journal of Vision*, vol. 8, no. 12, 2008. View at Publisher · View at Google Scholar · View at Scopus