steadyICA (version 1.0)

permTest: Permutation test for mutual independence.

Description

Calculates an approximate p-values based upon a permutation test for mutual independence.

Usage

permTest(S, group=1:ncol(S), R=199, FUN=c('gmultidcov','compInd'), ...)

Arguments

S
The n x d matrix for which you wish to test the dependence between d columns from n samples
group
A length d vector which indicates group membership for each component
R
The number of permutations to perform in order to obtain the approximate p-value.
FUN
The function used to determine mutual independence. This is one of either gmultidcov or compInd.
...
Additionl arguments passed to FUN. See details.

Value

  • Returns an approximate p-values based upon a permutation test.

Details

Suppose that the groups are numbered 1,2,...,C and that group is a vector indicating group membership for each component. If symmetric==TRUE, calculates: sum_{i=1}^{C} dcovustat(S[,group==i],S[,group!=i]) If symmetric==FALSE, calculates: sum_{i=1}^{C-1} dcovustat(S[,group==i],S[,group>i])

If no additional arguments are supplied for FUN then the default values are used. In the case of gmultidcov, values for alpha and symmetric can be supplied. While for compInd only the value of alpha is needed.

See Also

dcovustat, energy::dcov