Package: tbea 1.7.0

tbea: Pre- And Post-Processing in Bayesian Evolutionary Analyses

Functions are provided for prior specification in divergence time estimation using fossils as well as other kinds of data. It provides tools for interacting with the input and output of Bayesian platforms in evolutionary biology such as 'BEAST2', 'MrBayes', 'RevBayes', or 'MCMCTree'. It Implements a simple measure similarity between probability density functions for comparing prior and posterior Bayesian densities, as well as code for calculating the combination of distributions using conflation of Hill (2008). Functions for estimating the origination time in collections of distributions using the x-intercept (e.g., Draper and Smith, 1998) and stratigraphic intervals (Marshall 2010) are also available. Hill, T. 2008. "Conflations of probability distributions". Transactions of the American Mathematical Society, 363:3351-3372. <doi:10.48550/arXiv.0808.1808>, Draper, N. R. and Smith, H. 1998. "Applied Regression Analysis". 1--706. Wiley Interscience, New York. <doi:10.1002/9781118625590>, Marshall, C. R. 2010. "Using confidence intervals to quantify the uncertainty in the end-points of stratigraphic ranges". Quantitative Methods in Paleobiology, 291--316. <doi:10.1017/S1089332600001911>.

Authors:Gustavo A. Ballen [aut, cre], Sandra Reinales [aut]

tbea_1.7.0.tar.gz
tbea_1.7.0.zip(r-4.7)tbea_1.7.0.zip(r-4.6)tbea_1.7.0.zip(r-4.5)
tbea_1.7.0.tgz(r-4.6-any)tbea_1.7.0.tgz(r-4.5-any)
tbea_1.7.0.tar.gz(r-4.7-any)tbea_1.7.0.tar.gz(r-4.6-any)
tbea_1.7.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
tbea/json (API)

# Install 'tbea' in R:
install.packages('tbea', repos = c('https://gaballench.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/gaballench/tbea/issues

Pkgdown/docs site:https://gaballench.github.io

Datasets:
  • andes - Divergence-time estimation data for cis-trans-Andean pairs
  • cynodontidae.posterior - Posterior samples for the family Cynodontidae
  • cynodontidae.prior - Prior samples for the family Cynodontidae
  • laventa - Geochronology samples from the Honda Group in Colombia

On CRAN:

Conda:

6.04 score 3 stars 22 scripts 510 downloads 17 exports 8 dependencies

Last updated from:6662fb83a2. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK220
source / vignettesOK203
linux-release-x86_64OK258
macos-release-arm64OK201
macos-oldrel-arm64OK230
windows-develOK202
windows-releaseOK206
windows-oldrelOK193
wasm-releaseOK96

Exports:c_truncauchyconcatNexusconflatecrossplotdensity_funfasta2nexusfindParamslognormalBeastmeasureSimilmswd.testquantile_conflationstratCIsummaryBrlentable2nexustnt2newicktopoFreqxintercept

Dependencies:apebootcodadigestlatticenlmeRcppRfit

Why to use the mean of the quantiles as initial values in optim?

Rendered fromwhyInitVals.Rmdusingknitr::rmarkdownon May 13 2026.

Last update: 2021-07-12
Started: 2021-07-12

Concatenation

Rendered fromconcatenation.Rmdusingknitr::rmarkdownon May 13 2026.

Last update: 2025-08-19
Started: 2025-08-19

Conflation of distributions

Rendered fromconflation.Rmdusingknitr::rmarkdownon May 13 2026.

Last update: 2025-08-19
Started: 2025-08-19

Inference using x-intercept methods

Rendered fromx_intercept.Rmdusingknitr::rmarkdownon May 13 2026.

Last update: 2025-08-19
Started: 2025-08-19

Introduction to tbea

Rendered fromintro.Rmdusingknitr::rmarkdownon May 13 2026.

Last update: 2025-08-19
Started: 2021-07-12

Node calibration specification

Rendered fromnode_calibration_density.Rmdusingknitr::rmarkdownon May 13 2026.

Last update: 2025-08-19
Started: 2025-08-19

Posterior tree distribution

Rendered fromposterior_tree_distribution.Rmdusingknitr::rmarkdownon May 13 2026.

Last update: 2025-08-19
Started: 2025-08-19

Prior-Posterior comparisons

Rendered fromprior_posterior_comparisons.Rmdusingknitr::rmarkdownon May 13 2026.

Last update: 2025-08-19
Started: 2025-08-19

Specification of the Truncated Cauchy calibration density in MCMCTree

Rendered froml_calibration_mcmctree.Rmdusingknitr::rmarkdownon May 13 2026.

Last update: 2025-08-19
Started: 2025-08-19

Starting trees and how to specify them

Rendered fromstarting_tree.Rmdusingknitr::rmarkdownon May 13 2026.

Last update: 2025-08-19
Started: 2025-08-19

Stratigraphic intervals

Rendered fromstratigraphic_intervals.Rmdusingknitr::rmarkdownon May 13 2026.

Last update: 2025-08-19
Started: 2025-08-19

Readme and manuals

Help Manual

Help pageTopics
Divergence-time estimation data for cis-trans-Andean pairsandes
c_truncauchy: Estimate the c parameter for the truncated cauchy L distribution to be used in MCMCTreec_truncauchy
concatNexus: Function for concatenation of nexus matrices both morphological and molecularconcatNexus
conflate: Calculate the conflation of multiple distributions pdfs, plot = TRUE, from, to, n, add = FALSEconflate
crossplot: Plot the mean/median and HPD interval bars for pairs of distributionscrossplot
Posterior samples for the family Cynodontidaecynodontidae.posterior
Prior samples for the family Cynodontidaecynodontidae.prior
density_fun: A way to represent distributions to be conflateddensity_fun
fasta2nexus (deprecated): Function for converting molecular alignments from fasta to nexus formatfasta2nexus
Function for estimation of probability density function parameters through quadratic optimizationfindParams
Geochronology samples from the Honda Group in Colombialaventa
Constructing a curve for the user-specified lognormal prior using Beast2 parameterslognormalBeast
Calculate the Intersection Between Two DensitiesmeasureSimil
Reduced chi-square test or mean square weighted deviation (mswd) testmswd.test
quantile_conflation: Calculate the quantile for a given probabiliy under a conflated distributionquantile_conflation
stratCI: Estimate the confidence intervals of endpoints in stratigraphic intervalsstratCI
summaryBrlen: Summarise branch lengths on trees with identical topologysummaryBrlen
table2nexus: Read a data matrix in delimited format and convert into a data matrix in nexus formattable2nexus
tnt2newick: Function for converting from TNT tree format to newick parenthetical formattnt2newick
Frequency of topologies in a tree sampletopoFreq
xintercept: Estimate the x-intercept of an empirical cdfxintercept