Description Usage Arguments Value Details Author(s) References Examples
View source: R/discrPermutationTests.R
A function that performs a one-sample test for whether the discriminability differs from random chance.
1 2 3 4 5 6 7 8 9 10 11 | discr.test.one_sample(
X,
Y,
is.dist = FALSE,
dist.xfm = mgc.distance,
dist.params = list(method = "euclidean"),
dist.return = NULL,
remove.isolates = TRUE,
nperm = 500,
no_cores = 1
)
|
X |
is interpreted as:
|
Y |
|
is.dist |
a boolean indicating whether your |
dist.xfm |
if |
dist.params |
a list of trailing arguments to pass to the distance function specified in |
dist.return |
the return argument for the specified
|
remove.isolates |
remove isolated samples from the dataset. Isolated samples are samples with only
one instance of their class appearing in the |
nperm |
the number of permutations to perform. Defaults to |
no_cores |
the number of cores to use for permutation test. Defaults to |
A list containing the following:
|
the discriminability of the data. |
|
the discriminability scores under the null, computed via permutation. |
|
the pvalue associated with the permutation test. |
Performs a test of whether an observed discriminability is significantly different from chance, as described in Bridgeford et al. (2019). With Dhatx the sample discriminability of X:
H0: Dx = D0
and:
Ha: Dx > D0
where D0 is the discriminability that would be observed by random chance.
Eric Bridgeford
Eric W. Bridgeford, et al. "Optimal Decisions for Reference Pipelines and Datasets: Applications in Connectomics." Bioarxiv (2019).
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
require(mgc)
n = 100; d=5
# simulation with a large difference between the classes
# meaning they are more discriminable
sim <- discr.sims.linear(n=n, d=d, K=2, signal.lshift=10)
X <- sim$X; Y <- sim$Y
# p-value is small
discr.test.one_sample(X, Y)$p.value
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.