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:
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')) |
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated from:48a8c0f263. Checks:6 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 179 | ||
| linux-devel-x86_64 | OK | 154 | ||
| source / vignettes | OK | 201 | ||
| linux-release-arm64 | OK | 169 | ||
| linux-release-x86_64 | OK | 183 | ||
| wasm-release | OK | 116 |
Exports:baConTreeContextTreefit_vlmcmetropolis_vlmcrvlmcSequence
Dependencies:base64encBrobdingnagcachemclicpp11digestdplyrfarverfastmapgenericsggforceggplot2ggraphggrepelgluegraphlayoutsgridExtragtableigraphisobandjsonlitelabelinglatticelifecyclemagrittrMASSMatrixmemoisepillarpkgconfigpolyclipprogressrpurrrR6RColorBrewerRcppRcppArmadillorlangS7scalesstringistringrsystemfontstibbletidygraphtidyrtidyselecttweenrutf8vctrsviridisviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Simulated Sequence Data from a Variable Length Markov Chain (VLMC) | abc_data abc_list abc_vec |
| Bayesian Context Tree R6 Class | baConTree |
| ContextTree R6 Class | ContextTree |
| Fit a Variable Length Markov Chain (VLMC) via Context Algorithm | fit_vlmc |
| Metropolis-Hastings Posterior Sampling for Context Trees | metropolis_vlmc |
| Plot method for baConTree class | plot.baConTree |
| Plot method for ContextTree class | plot.ContextTree |
| Generate a sequence based on a Variable Length Markov Chain (VLMC) | rvlmc |
| Sequence Class | Sequence |
| TreeNode Class | TreeNode |
