Description Usage Arguments Value See Also
Obtain the p-value using permutation test.
1 2 | getPermutePval(X, Y, testFunction, npermute = 100, useMC = FALSE,
mc.cores = 1, seeds = NULL)
|
X |
n1 by p matrix of the first population |
Y |
n2 by p matrix of the second population |
testFunction |
a function that takes in two arguments, X and Y,
and returns a list including the field |
npermute |
the number of permutations to conduct |
useMC |
logical variable indicating whether to use multicore parallelization.
R packages |
mc.cores |
decide the number of cores to use when |
seeds |
a numeric vector with length |
A list containing the following components:
test.res |
the results of the original test, including test statistic, sometimes also include the p-values calculated using the limiting distribution |
test.stat.permute |
a numeric vector with length |
pVal |
the permutation pvalue, calculated as the fraction of |
Cai.max.test()
, Chang.maxBoot.test()
,
LC.U.test()
, WL.randProj.test()
, Schott.Frob.test()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.