Learn R Programming

phytools (version 0.3-72.1)

multi.mantel: Multiple matrix regression (partial Mantel test)

Description

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.

Usage

multi.mantel(Y, X, nperm=1000)

Arguments

Y
single "dependent" square matrix. Can be either a symmetric matrix of class "matrix" or a distance matrix of class "dist".
X
a single independent matrix or multiple independent matrices in a list. As with Y can be a object of class "matrix" or class "dist".
nperm
number of Mantel permutations.

Value

  • A list with the following components:
  • r.squaredmultiple R-squared.
  • coefficientsmodel coefficients, including intercept.
  • tstatistict-statistics for model coefficients.
  • fstatisticF-statistic for the overall model.
  • probtvector of probabilities, based on permutations, for tstatistic.
  • probFprobability of F, based on Mantel permutations.
  • residualsmatrix of residuals.
  • predictedmatrix of predicted values.

References

Mantel, N. (1967) The detection of disease clustering and a generalized regression approach. Cancer Research, 27, 209--220.