Learn R Programming

phytools (version 0.5-00)

fitMk: Fits Mk model

Description

This function fits a so-called Mk model for discrete character evolution. It is primarily designed to be used inside of make.simmap.

Usage

fitMk(tree, x, model="SYM", fixedQ=NULL, ...)

Arguments

tree
an object of class "phylo".
x
a vector of tip values for species; names(x) should be the species names.
model
model. See make.simmap or ace for details.
fixedQ
fixed value of transition matrix Q, if one is desired.
...
optional arguments, including pi, the prior distribution at the root node (defaults to pi="equal").

Value

  • An object of class "fitMk".

References

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

See Also

ace, make.simmap