View source: R/mahalanobisDist.R
We determine the p-value as the proportion of observations, under the null hypothesis, that are at least as extreme as the observed statistic.
1 | permutationPvalue(replication, data, group)
|
replication |
is a integer specifying the number of permutations to perform between the groups in order to obtain p-values. |
data |
is a matrix containing point positions. The matrix has two columns. Each row of the matrix gives one point. |
group |
is a vector specifying the group each point belongs to. Notice that this method calculates distances of two groups by a time. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.