Package: bacontrees 1.0.0

bacontrees: Bayesian Context Trees for Discrete Sequence Data

Models discrete sequential data using Bayesian Context Trees. Context trees, also known as Variable Length Markov Chains (VLMCs), are parsimonious Markov models where the order of dependence can vary with the observed past. Provides a generic 'R6' class structure that exposes the full tree for building custom algorithms, exact Bayesian inference via a bottom-up recursive algorithm (closed-form marginal likelihood, Maximum A Posteriori (MAP) tree, exact posterior probabilities, and exact sampling from the posterior), a frequentist estimator via the context algorithm with likelihood-ratio pruning, simulation utilities, and a Metropolis-Hastings sampler. See Paulichen and Freguglia (2026) <doi:10.48550/arXiv.2603.25806>.

Authors:Victor Freguglia [aut, cre], Thiago Paulichen [ctb]

bacontrees_1.0.0.tar.gz
bacontrees_1.0.0.zip(r-4.7)bacontrees_1.0.0.zip(r-4.6)bacontrees_1.0.0.zip(r-4.5)
bacontrees_1.0.0.tgz(r-4.6-x86_64)bacontrees_1.0.0.tgz(r-4.6-arm64)bacontrees_1.0.0.tgz(r-4.5-x86_64)bacontrees_1.0.0.tgz(r-4.5-arm64)
bacontrees_1.0.0.tar.gz(r-4.7-arm64)bacontrees_1.0.0.tar.gz(r-4.7-x86_64)bacontrees_1.0.0.tar.gz(r-4.6-arm64)bacontrees_1.0.0.tar.gz(r-4.6-x86_64)
bacontrees_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
bacontrees/json (API)

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

Bug tracker:https://github.com/freguglia/bacontrees/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • abc_list - Simulated Sequence Data from a Variable Length Markov Chain
  • abc_vec - Simulated Sequence Data from a Variable Length Markov Chain

On CRAN:

Conda:

cpp

3.74 score 1 stars 3 scripts 544 downloads 6 exports 53 dependencies

Last updated from:01e9bbbdc2. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK606
linux-devel-x86_64OK205
source / vignettesOK240
linux-release-arm64OK188
linux-release-x86_64OK187
macos-release-arm64OK112
macos-release-x86_64OK277
macos-oldrel-arm64OK163
macos-oldrel-x86_64OK288
windows-develOK158
windows-releaseOK173
windows-oldrelOK144
wasm-releaseOK128

Exports:baConTreeContextTreefit_vlmcmetropolis_vlmcrvlmcSequence

Dependencies:base64encBrobdingnagcachemclicpp11digestdplyrfarverfastmapgenericsggforceggplot2ggraphggrepelgluegraphlayoutsgridExtragtableigraphisobandjsonlitelabelinglatticelifecyclemagrittrMASSMatrixmemoisepillarpkgconfigpolyclipprogressrpurrrR6RColorBrewerRcppRcppArmadillorlangS7scalesstringistringrsystemfontstibbletidygraphtidyrtidyselecttweenrutf8vctrsviridisviridisLitewithr