Permutation Tests for Time Series Data

Helps you determine the analysis window to use when analyzing densely-sampled time-series data, such as EEG data, using permutation testing (Maris & Oostenveld 2007) . These permutation tests can help identify the timepoints where significance of an effect begins and ends, and the results can be plotted in various types of heatmap for reporting.


This R packages is intended to be used with densely-sampled time-series data, such as EEG data or mousetracking data. The package runs a permutation ANOVA at every timepoint in your dataset and enables you to plot the resulting p-values as a heatmap. This allows you to determine empirically where the effect of your experimental manipulation starts and ends, which provides you information on what time window you should take when you run your real analysis.

The reason we run a permutation ANOVA instead of a regular ANOVA is that this is common in EEG research; the rationale is that it helps you reduce the Multiple Comparisons Problem (that you will definitely have if you test 32 electrodes at a few hundred timepoints) to some degree by deriving the null distribution empirically, rather than assuming that your data are asymptotically i.i.d.. Note that the resulting p-values are still not valid for purposes of statistical inference; they only serve to inform you about the window you should take when you run your actual statistical procedure (usually a linear mixed-effects model).

Installation

library(devtools)
install_github('cvoeten/permutes')

News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("permutes")

0.1.1 by Cesko C. Voeten, 4 days ago


Report a bug at https://github.com/cvoeten/permutes/issues


Browse source code at https://github.com/cran/permutes


Authors: Cesko C. Voeten [aut, cre]


Documentation:   PDF Manual  


FreeBSD license


Imports plyr, ggplot2, viridis

Depends on lmPerm

Suggests doParallel, dplyr, tidyr, knitr


See at CRAN