This function conducting a multiple matrix regression (partial Mantel test) and uses Mantel (1967) permutations to test the significance of the model and individual coefficients. It also returns the residual and predicted matrices.
multi.mantel(Y, X, nperm=1000)
single "dependent" square matrix. Can be either a symmetric matrix of class "matrix"
or a distance matrix of class "dist"
.
a single independent matrix or multiple independent matrices in a list. As with Y
can be a object of class "matrix"
or class "dist"
.
number of Mantel permutations.
A list with the following components:
multiple R-squared.
model coefficients, including intercept.
t-statistics for model coefficients.
F-statistic for the overall model.
vector of probabilities, based on permutations, for tstatistic
.
probability of F, based on Mantel permutations.
matrix of residuals.
matrix of predicted values.
Mantel, N. (1967) The detection of disease clustering and a generalized regression approach. Cancer Research, 27, 209--220.
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.