compF: Compute F-values

Description Usage Arguments Value

View source: R/anova.R

Description

compF computes F-values. This is an internal function called by the high-level function arrayAnova.

Usage

1
compF(obj, new_indices = NULL, attribs = FALSE, verbose = FALSE)

Arguments

obj

a list object as returned by preAnova

new_indices

if not NULL (default), it must be a vector of numeric indices to be passed to the model matrix. This parameter is used for permutation-based analyses.

attribs

a logical value if dimension and verbose attributes should be attached to the resulting array (default: FALSE)

verbose

a logical value if p-values, effect sizes, and degrees of freedom should be added to the returned array (as 'p_value', 'effect_size', and 'Df' attributes)

Value

This function returns a numeric matrix of F-values if 'attribs' is FALSE, and an array of F-values if 'attribs' is TRUE. If the verbose variant was requested, the array has the following extra attributes: 'p_value' and 'effect_size', having the same dimension as the array of F-values, and an integer matrix named 'Df' with term- and residual degrees of freedom for each model term.


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