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-x86_64)bacontrees_1.0.0.zip(r-4.7-arm64)bacontrees_1.0.0.zip(r-4.6-x86_64)bacontrees_1.0.0.zip(r-4.6-arm64)bacontrees_1.0.0.zip(r-4.5-x86_64)
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 391 downloads 6 exports 53 dependencies

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

TargetResultTimeFilesSyslog
linux-devel-arm64OK171
linux-devel-x86_64OK196
source / vignettesOK186
linux-release-arm64OK196
linux-release-x86_64OK183
macos-release-arm64OK153
macos-release-x86_64OK232
macos-oldrel-arm64OK151
macos-oldrel-x86_64OK274
windows-devel-arm64OK386
windows-devel-x86_64OK203
windows-release-arm64OK403
windows-release-x86_64OK136
windows-oldrel-x86_64OK157
wasm-releaseOK116

Exports:baConTreeContextTreefit_vlmcmetropolis_vlmcrvlmcSequence

Dependencies:base64encBrobdingnagcachemclicpp11digestdplyrfarverfastmapgenericsggforceggplot2ggraphggrepelgluegraphlayoutsgridExtragtableigraphisobandjsonlitelabelinglatticelifecyclemagrittrMASSMatrixmemoisepillarpkgconfigpolyclipprogressrpurrrR6RColorBrewerRcppRcppArmadillorlangS7scalesstringistringrsystemfontstibbletidygraphtidyrtidyselecttweenrutf8vctrsviridisviridisLitewithr