threshDIC | R Documentation |
Computes Deviance Information Criterion from the MCMC object returned by ancThresh
.
threshDIC(tree, x, mcmc, burnin=NULL, sequence=NULL, method="pD")
tree |
phylogenetic tree. |
x |
a named vector containing discrete character states; or a matrix containing the tip species, in rows, and probabilities of being in each state, in columns. |
mcmc |
list object returned by |
burnin |
number of generations (not samples) to exclude as burn in; if not supplied then 20% of generations are excluded. |
sequence |
assumed ordering of the discrete character state. If not supplied and |
method |
method for computing the effective number of parameters (options are |
This function computes the Deviance Information Criterion from the MCMC object returned by ancThresh
.
A vector containing the mean deviance and deviance for the parameter means, the effective number of parameters, and the DIC.
Liam Revell liam.revell@umb.edu
Revell, L. J. (2014) Ancestral character estimation under the threshold model from quantitative genetics. Evolution, 68, 743-759.
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.
Spiegelhalter, D. J., N. G. Best, B. P. Carlin, and A. Van Der Linde (2002) Bayesian measures of model complexity and fit. Journal of the Royal Statistical Society Series B: Statistical Methodology, 64, 583-639.
ancThresh
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.