checkrates: Branching rates and model-fit diagnostics

View source: R/checkrates.R

checkratesR Documentation

Branching rates and model-fit diagnostics

Description

Recomputes the Yule and coalescent branching rates for every retained MCMC sample. GMYC assumes the two processes act on very different time scales (roughly an order of magnitude apart); if the rates are similar, the threshold is indistinct and results unreliable.

Usage

checkrates(result)

Arguments

result

A "singlebgmyc" or "multibgmyc" object.

Value

Object of class "bgmycrates": matrix with columns p.div, p.coal, threshold, lambda.div, lambda.coal, lambda.div.mod. The last is lambda.div * t^p.div / t, i.e. the fold change in speciation rate from the root to the last speciation event (Reid & Carstens 2012).

Examples

set.seed(123)
data(east10)
res <- bgmyc.singlephy(east10[[1]], mcmc = 100, burnin = 10, thinning = 10)
rates <- checkrates(res)
plot(rates)

bGMYC4 documentation built on Nov. 23, 2026, 5:07 p.m.