phyl.cca: Phylogenetic canonical correlation analysis

View source: R/phyl.cca.R

phyl.ccaR Documentation

Phylogenetic canonical correlation analysis

Description

Phylogenetic canonical correlation analysis, following Revell & Harrison (2008).

Usage

phyl.cca(tree, X, Y, lambda=1.0, fixed=TRUE)

Arguments

tree

a phylogenetic tree in "phylo" format.

X

a data matrix with traits in columns.

Y

data matrix with traits in columns, to be correlated with X.

lambda

optionally, a (fixed) value for \lambda.

fixed

optionally, a logical value indicating whether or not to estimate \lambda using likelihood.

Details

(Optional) joint optimization of \lambda is performed using optimize on the interval (0,1).

Value

An object of class "phyl.cca" containing the following elements:

cor

canonical correlations.

xcoef

coefficients for the canonical variables for X.

ycoef

coefficients for the canonical variables for Y.

xscores

matrix with the canonical scores for X.

yscores

matrix with the canonical scores for Y.

chisq

vector of \chi^2 values.

p

P-values for the hypothesis test that the ith and all subsequent correlations are zero.

Author(s)

Liam Revell liam.revell@umb.edu

References

Revell, L. J., Harrison, A. S. (2008) PCCA: A program for phylogenetic canonical correlation analysis. Bioinformatics, 24, 1018-1020.

Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.

See Also

phyl.pca


phytools documentation built on Nov. 10, 2023, 1:08 a.m.