Learn R Programming

SOUP (version 1.1)

t2p: From Test Statistics To p-Values

Description

Transforming Test Statistics to Permutation p-Values

Usage

t2p(Tmat, obsOnly = FALSE)

Arguments

Tmat
$3$-dimensional ($2$-dimensional) array containing the test statistics where the first horizontal slice (first row) contains the observed value
obsOnly
logical, if FALSE (default) the whole permutation distribution of the computed p-values is returned, if TRUE only the observed ones are returned.

Value

if obsOnly is FALSE an array of the same dimension of the input matrix Tmat, otherwise only the first row

See Also

permutationSpace, NPC