posterior_lambda_KDE_Distr {ontophylo}R Documentation

Get distributions of analytical posterior

Description

Simulates a distribution of number of state changes across all branches of all trees

Usage

posterior_lambda_KDE_Distr(tree.list, n.sim = 10, BR.name)

Arguments

tree.list

multiSimmap object.

n.sim

integer. Number of simulations.

BR.name

character. A label name for the anatomical region.

Value

A tibble with the simulated distribution.

Author(s)

Sergei Tarasov

Examples

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")


[Package ontophylo version 1.1.3 Index]