Mantel coefficient between two sets of variables | R Documentation |
Mantel coefficient between two sets of variables.
mantel(y, x)
y |
A numerical matrix. |
x |
A numerical matrix. |
The Mantel coefficient is simply the Pearson correlation coefficient computed on the off-diagonal elements of the distance matrix of each each matrix (or set of variables).
The Mantel coefficient.
Michail Tsagris
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
Abdi H. (2010). Congruence: Congruence coefficient, RV coefficient, and Mantel coefficient. Encyclopedia of Research Design, 3, 222–229.
rv, dcor
mantel( as.matrix(iris[, 1:2]), as.matrix(iris[, 3:4]) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.