Learn R Programming

phytools (version 0.7-20)

likMlambda: Likelihood for joint \(\lambda\)

Description

Computes the joint likelihood of Pagel's \(\lambda\) parameter.

Usage

likMlambda(lambda, X, C)

Arguments

lambda

scalar, usually on the interval 0,1 (although not required to be).

X

data for various continuous character, in the form of a matrix.

C

n x n matrix (for n taxa) containing the height above the root for each pair of taxa in the tree (e.g., vcv.phylo).

Value

The log-likelihood.

Details

Generally intended to be used internally by other methods that do joint optimization of \(\lambda\) (e.g., phyl.pca).

References

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