Package: bacontrees 1.0.0

Victor Freguglia

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.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
card.svg |card.png
bacontrees/json (API)
NEWS

# Install 'bacontrees' in R:
install.packages('bacontrees', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))
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:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

cpp

1.70 score 3 scripts 6 exports 53 dependencies

Last updated from:48a8c0f263. Checks:6 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK179
linux-devel-x86_64OK154
source / vignettesOK201
linux-release-arm64OK169
linux-release-x86_64OK183
wasm-releaseOK116

Exports:baConTreeContextTreefit_vlmcmetropolis_vlmcrvlmcSequence

Dependencies:base64encBrobdingnagcachemclicpp11digestdplyrfarverfastmapgenericsggforceggplot2ggraphggrepelgluegraphlayoutsgridExtragtableigraphisobandjsonlitelabelinglatticelifecyclemagrittrMASSMatrixmemoisepillarpkgconfigpolyclipprogressrpurrrR6RColorBrewerRcppRcppArmadillorlangS7scalesstringistringrsystemfontstibbletidygraphtidyrtidyselecttweenrutf8vctrsviridisviridisLitewithr