Learn R Programming

diversitree (version 0.9-3)

make.mkn.deriv: Mk2 and Mk-n Models of character evolution [temporary extension with derivatives]

Description

Not currently working

Currently a restricted-feature-set version of make.mkn, but including gradient (first derivative) information along with the likelihood. Currently lacks several features of the full mkn model: no support for missing trait data, no support for different root treatments, no optimised 2-state method.

In the future, this will roll back into make.mkn, so do not use or depend on this!

Arguments

tree
A phylogenetic tree, in ape phylo format.
states
A vector of character states, each of which must be integers from 1 to k.
k
Number of states to model.

See Also

make.mkn, which is more general, and from which this inherits support methods for ML and MCMC inference.