Description Usage Arguments Value Author(s)
A function that permutes the labels of a distance matrix to obtain an empirical pvalue associated with whether the raw score is due to random chance.
1 | discr.tests.two_sample_test(dist1, dist2, ids, nperm = 100, verbose = FALSE)
|
D1[nxn]: |
the first distance matrix to run a permutation test for. An [nxn] matrix. |
D2[nxn]: |
the second distance matrix to run a permutation test for. An [nxn] matrix. |
labels[n]: |
the labels organized appropriately with the distance matrices. Label 1 should correspond to the first column, 2 the second, and so on. |
verbose=FALSE: |
whether to print the itereation numbers. |
nperm=100: |
the number of permutations to perform. |
pval: the pvalue associated with the permutation test.
Shangsi Wang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.