permPvalues: Permutation of the test statistic

Description Usage Arguments Value

View source: R/anova.R

Description

permPvalues is called internally by arrayAnova and arrayTtest and performs permutation analysis.

Usage

1
permPvalues(obj, nperm, seed, stat_obs, parallel, tfce = NULL)

Arguments

obj

a list returned by preAnova

nperm

an integer value indicating the number of permutations

seed

an integer value which specifies a seed (default: NULL), or a list of arguments passed to set.seed

stat_obs

a numeric array of the observed test statistic

parallel

a list as returned by parallelParams

tfce

NULL (default) or a list of the TFCE parameters

Value

permPvalues returns a logical array whose elements indicate whether the absolute observed test statistic in the given chanXtime cell is smaller than the absolute randomized test statistic


tdeenes/eegR documentation built on April 19, 2021, 4:17 p.m.