posterior_lambda_KDE: Get analytical posterior

View source: R/nhpp_functions.R

posterior_lambda_KDER Documentation

Get analytical posterior

Description

Calculates the required statitics for the posterior distribution of number of state changes across all branches of all trees.

Usage

posterior_lambda_KDE(tree.list)

Arguments

tree.list

multiSimmap object.

Value

A list with mean ($Mean), standard deviation ($SD), and 95HPD interval ($Q_2.5 and $Q_97.5) calculated for the posterior 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
tree_list <- merge_tree_cat_list(tree_list[1:10])
# Calculate posterior poisson statistics.
posterior_lambda_KDE(tree_list)


ontophylo documentation built on May 29, 2024, 9:57 a.m.