Last chance! 50% off unlimited learning
Sale ends in
mantel
finds the Mantel statistic as a matrix
correlation between two dissimilarity matrices, and evaluates the
significance of the statistic by permuting rows and columns of the
dissimilarity matrix. The statistic is evaluated either as a moment
correlation or as a rank correlation.mantel(xdis, ydis, method="pearson", permutations=1000, strata)
dist
object.dist
object.cor.test
:
pearson
, spearman
or kendall
.mantel
with following
components:cor.test
. The function uses cor.test
, which should accept
alternatives pearson
for product moment correlations and
spearman
or kendall
for rank correlations.
Legendre, P. and Legendre, L. (1998) Numerical Ecology. 2nd English Edition. Elsevier.
cor.test
for correlation tests,
procrustes
for an alternative with ordination diagrams,
and anosim
for comparing dissimilarities against
classification. For dissimilarity matrices, see vegdist
or dist
.## Is vegetation related to environment?
data(varespec)
data(varechem)
veg.dist <- vegdist(varespec) # Bray-Curtis
env.dist <- vegdist(scale(varechem), "euclid")
mantel(veg.dist, env.dist)
mantel(veg.dist, env.dist, method="spear")
Run the code above in your browser using DataLab