Y) and computes the residuals. Designed for phylogenetic size correction using GLS regression (e.g., Revell 2009; Evolution).phyl.resid(tree, x, Y, method="BM")"phylo" format."BM" or "lambda".method="lambda" only).method="lambda" only).method="lambda" using optimize on the interval (0,1). This function is redundant with residuals(gls(...,correlation=corPagel(...))), but may be easier to use to use for some users.phyl.pca, gls