discr.tests.one_sample_test: Discriminability One Sample Permutation Test

Description Usage Arguments Value Author(s)

Description

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.

Usage

1
discr.tests.one_sample_test(D, labels, nperm = 100, verbose = FALSE)

Arguments

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.

Value

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.

Author(s)

Shangsi Wang


ebridge2/Discriminability documentation built on May 15, 2019, 7:48 p.m.