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.one_sample_test(D, labels, nperm = 100, verbose = FALSE)
|
D[nxn]: |
the distance matrix to run a permutation test for. An [nxn] matrix. |
labels[n]: |
the labels organized appropriately with the distance matrix. Label 1 should correspond to the first column, 2 the second, and so on. |
nrep=100: |
the number of permutations to perform. |
verbose=FALSE: |
whether to print the itereation numbers. |
srel: the relative, unpermuted discriminability you want to see is significant.
null: the discriminability scores of the permuted data.
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.