phyl.RMA: Phylogenetic reduced major axis (RMA) regression
Description
This function performs phylogenetic RMA regression.Usage
phyl.RMA(x,y,tree,method="BM",lambda=NULL,fixed=FALSE)
Arguments
tree
a phylogenetic tree in "phylo"
format.
method
method to obtain the correlation structure: can be "BM"
or "lambda"
.
lambda
value of lambda
for fixed lambda.
fixed
logical value indicating whether or not lambda should be fixed.
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
.
Details
Optionally jointly estimates lambda if method="lambda"
. Likelihood optimization of lambda is performed using optimize
on the interval (0,1).