posterior_lambda_KDE_Distr {ontophylo} | R Documentation |
Simulates a distribution of number of state changes across all branches of all trees
posterior_lambda_KDE_Distr(tree.list, n.sim = 10, BR.name)
tree.list |
multiSimmap object. |
n.sim |
integer. Number of simulations. |
BR.name |
character. A label name for the anatomical region. |
A tibble with the simulated distribution.
Sergei Tarasov
data("hym_stm_amalg")
# Get a sample of ten stochastic maps from head.
tree_list <- hym_stm_amalg$head[1:10]
tree_list <- merge_tree_cat_list(tree_list)
# Simulate posterior poisson distribution.
posterior_lambda_KDE_Distr(tree_list, n.sim = 10, BR.name = "head")