Function to test for correlated evolution of binary traits
This function fit's Pagel's (1994) model for the correlated evolution of two binary characters.
plot.fitPagel
plots the fitted models using arrows.
fitPagel(tree, x, y, method="fitMk", model="ARD", dep.var="xy", ...) ## S3 method for class 'fitPagel' plot(x, ...)
tree |
an object of class |
x |
a vector of phenotypic values for a binary trait for the species in |
y |
a second binary character for the species in |
method |
function to use for optimization (defaults to |
model |
model of evolution for the individual characters. Can be |
dep.var |
dependent variable. If |
... |
optional arguments to be passed to |
An object of class "fitPagel"
which contains the optimized matrices under an independence & a dependence model, log-likelihoods, a likelihood ratio, and a P-value for the independence model based on a chi-squared test.
plot.fitPagel
creates a plot showing the different fitted models with arrows.
Liam Revell liam.revell@umb.edu
Pagel, M. (1994) Detecting correlated evolution on phylogenies: A general method for the comparative analysis fo discrete characters. Proceedings of the Royal Society B, 255, 37-45.
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.