Learn R Programming

phytools (version 0.0-8)

phyl.RMA: Phylogenetic reduced major axis (RMA) regression

Description

This function performs phylogenetic RMA regression.

Usage

phyl.RMA(x,y,tree,method="BM")

Arguments

x
vector with names.
y
vector with names.
tree
a phylogenetic tree in "phylo" format.
method
method to obtain the correlation structure: can be "BM" or "lambda".

Value

  • a list with the following components:
  • RMA.betaa vector of RMA regression coefficients.
  • Va VCV matrix for the traits.
  • lambdafitted value of lambda (method="lambda" only).
  • logLlog-likelihood (method="lambda" only).
  • resida vector of residuals for y given x.

See Also

phyl.pca, phyl.resid