Ttest: Workhorse functions of arrayTest

Description Usage Arguments Value

Description

isTtest and osTtest compute t-values and additional p-values & degrees of freedom if requested for independent samples (isTtest) and one-sample or paired-samples (osTest).

Usage

1
2
3
isTtest(obj, new_group = NULL, attribs = FALSE)

osTtest(obj, new_sign = NULL, attribs = FALSE)

Arguments

obj

a list object returned by preTtest

new_group

integer vector with values 1 and 2, corresponding to the group membership of the subjects. See isTtestRandomGroups.

attribs

logical value whether dimension and type attributes shall be attached to the returned statistic (default: FALSE)

new_sign

integer vector with values -1L and 1L, corresponding to the sign of the value (one-sample t test) or difference of values (paired samples t test). See osTtestRandomSigns.

Value

The functions return a vector (or array, if attribs = TRUE) of the same length as the number of columns in the input matrix. Auxiliary results ('Df', degrees of freedom; 'p_value', p-values) are added as attributes (if obj$verbose == TRUE).


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