preAnova: Parameter checks and data preparation in 'arrayAnova'

Description Usage Arguments See Also

View source: R/anova.R

Description

preAnova performs parameter checking, creates a data.frame for the ANOVA design and reshapes .arraydat accordingly, prepares the computation of sum-of-squares. It is called by arrayAnova and tanova.

Usage

1
preAnova(.arraydat, factordef, bwdat, verbose, tfce, perm, tanova_type = NULL)

Arguments

.arraydat

numeric array

factordef

a list of between-subject factors (named 'between'), within-subject factors ('within'), subject identifier ('w_id'), and a character vector of observed (i.e., not manipulated) variables ('observed'). The last element ('observed') is only used in effect size computations.

bwdat

a data.frame with the subject-level variables (usually factors)

tfce

logical value whether TFCE is requested

perm

logical value whether permutation is requested

tanova_type

type of tanova ("tanova", "dissimilarity", "gfp") if this function is called from tanova

See Also

arrayAnova and tanova are the higher-level function exported to the user, preSumSq, compF and compTanovaEffect are internal functions relying on the returned object of preAnova.


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