discr.test.one_sample: Discriminability One Sample Permutation Test

Description Usage Arguments Value Author(s)

View source: R/discrPermutationTests.R

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.test.one_sample(D, ids, nperm = 100, verbose = FALSE)

Arguments

D

is interpreted as:

a [n x n] distance matrix

X is a square matrix with zeros on diagonal for n samples.

a [n x d] data matrix

X is a data matrix with n samples in d dimensions.

ids

n the labels of each of the n samples, in the same ordering as elements of the distance matrix. Label 1 should correspond to the first column, 2 the second, and so on.

nperm

the number of permutations to perform. Defaults to 100.

verbose

whether to print the itereation numbers. Defaults to FALSE.

Value

A list containing the following:

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 and Eric Bridgeford


neurodata/mgc-r documentation built on Feb. 3, 2019, 12:43 a.m.