getAncLiks | R Documentation |
Returns ancestral likelihoods at each node. Based on code from ace in ape and fitMk/rerootingMethod in phytools
getAncLiks(tree, tipvals, Q = NULL, rate_model = "ER", root_prior = "auto")
tree |
Object of class phylo that has been pruned to only contain the species in tipvals |
tipvals |
The phenotype data for the extant species in the tree in the same order as tree$tip.label and mapped to integers |
Q |
A transition matrix, if NULL the transition matrix is fit with fit_mk from castor package |
rate_model |
The rate model to use for fitting the transition matrix if one is not provided |
root_prior |
The root prior used when fitting the transition matrix if one is not provided |
The ancestral likelihoods at each node in the tree
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.