forked from neurodata/r-mgc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiscr.test.two_sample.Rd
More file actions
36 lines (32 loc) · 1.4 KB
/
discr.test.two_sample.Rd
File metadata and controls
36 lines (32 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/discrPermutationTests.R
\name{discr.test.two_sample}
\alias{discr.test.two_sample}
\title{Discriminability Two Sample Permutation Test}
\usage{
discr.test.two_sample(D1, D2, ids, nperm = 100, verbose = FALSE)
}
\arguments{
\item{D1}{is interpreted as:
\describe{
\item{a \code{[n x n]} distance matrix}{X is a square matrix with zeros on diagonal for \code{n} samples.}
\item{a \code{[n x d]} data matrix}{X is a data matrix with \code{n} samples in \code{d} dimensions.}
}}
\item{D2}{is interpreted as:
\describe{
\item{a \code{[n x n]} distance matrix}{X is a square matrix with zeros on diagonal for \code{n} samples.}
\item{a \code{[n x d]} data matrix}{X is a data matrix with \code{n} samples in \code{d} dimensions.}
}}
\item{ids}{\code{n} the labels of each of the \code{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.}
\item{nperm}{the number of permutations to perform. Defaults to \code{100}.}
\item{verbose}{whether to print the itereation numbers. Defaults to \code{FALSE}.}
}
\value{
the pvalue associated with the permutation test.
}
\description{
A function that takes two distance matrices and produces a p-value associated with whether or not the distance matrices differ significantly.
}
\author{
Shangsi Wang and Eric Bridgeford
}