permTest {steadyICA} | R Documentation |
Calculates an approximate p-values based upon a permutation test for mutual independence.
permTest(S, group=1:ncol(S), R=199, FUN=c('gmultidcov','compInd'), ...)
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. |
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.
Returns an approximate p-values based upon a permutation test.
Nicholas James