mcmc.summary: MCMC summary

View source: R/mcmc.summary.R

mcmc.summaryR Documentation

MCMC summary

Description

Create an MCMC summary from a BPP or MCMCTree analysis

Usage

mcmc.summary(mcmc, prob = 0.95)

Arguments

mcmc

Data frame with the MCMC output of BPP or MCMCTree

prob

Numeric, probability for credibility interval calculation

Details

mcmc should contain the output (say from file mcmc.txt) generated by a BPP A00 or MCMCtree analysis. The function will calculate the posterior (prior) means, the equal-tail credibility interval (CI), and the highest posterior (prior) density (HPD) CI. prob is used to calculate the CIs. For example, if prob = 95 95

Value

A list with elements means, eq.ci, and hpd.ci containing the posterior (or prior) means, equal tail CI and HPD CI.

Author(s)

Mario dos Reis

Examples

## Not run: 
mcmc.summary(hominids$mcmc[,-1])

## End(Not run)


dosreislab/bppr documentation built on April 13, 2025, 10:57 p.m.