fitBayes {phytools} | R Documentation |
Evolutionary model fitting with intraspecific variability using Bayesian MCMC
Description
fitBayes
uses Bayesian MCMC to sample terminal states (species means) as well as the parameters of an evolutionary model from their joint posterior distribution, following Revell & Reynolds (2012).
Usage
fitBayes(tree, x, ngen=10000, model="BM", method="reduced", control=list())
Arguments
tree |
an object of class |
x |
a vector of phenotypic values for individuals; |
ngen |
a integer indicating the number of generations for the MCMC. |
model |
an evolutionary model: either |
method |
a method: either |
control |
a list of control parameters containing the following elements: |
Value
An object of class "fitBayes"
that includes a matrix (mcmc
) with a number of rows ngen/control$sample+1
containing the posterior sample and likelihoods.
Matrix columns are labeled by species (for species means and variances), or by the corresponding evolutionary parameter.
Author(s)
Liam Revell liam.revell@umb.edu
References
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.
Revell, L. J. and R. G. Reynolds. (2012) A new Bayesian method for fitting evolutionary models to comparative data with intraspecific variation. Evolution, 66, 2697-2707.
See Also
anc.Bayes
, brownie.lite
, evol.rate.mcmc