asr {diversitree} | R Documentation |
Perform ancestral state reconstruction. These functions are all generic and will dispatch on the class of the given likelihood functions. Currently methods exist for all generics for Mk2, and marginal ancestral state reconstructions are supported for BiSSE.
asr.marginal(lik, pars, nodes=NULL, ...)
asr.joint(lik, pars, n=1, ...)
asr.stoch(lik, pars, n=1, ...)
make.asr.marginal(lik, ...)
make.asr.joint(lik, ...)
make.asr.stoch(lik, ...)
lik |
A likelihood function. |
pars |
A vector of parameters, suitable for |
nodes |
For |
n |
The number of samples to draw from the joint distribution, or number of stochastic reconstructions to make. |
... |
Additional arguments passed through to future methods |
These three functions compute marginal, joint, and stochastic
ancestral reconstructions. The make
versions return functions
that can efficiently be used many times over.
The return values of the functions are likely to change in the near future. Watch out!
Richard G. FitzJohn
asr.mkn and asr.bisse for methods specific to particular classes, with examples of use.