stochtree
0.4.5Stochastic Tree Ensembles (XBART and BART) for Supervised Learning and Causal Inference
Overview
Flexible stochastic tree ensemble software. Robust implementations of Bayesian Additive Regression Trees (BART) (Chipman, George, McCulloch (2010) doi:10.1214/09-AOAS285) for supervised learning and Bayesian Causal Forests (BCF) (Hahn, Murray, Carvalho (2020) doi:10.1214/19-BA1195) for causal inference. Enables model serialization and parallel sampling and provides a low-level interface for custom stochastic forest samplers. Includes the grow-from-root algorithm for accelerated forest sampling (He and Hahn (2021) doi:10.1080/01621459.2021.1942012), a log-linear leaf model for forest-based heteroskedasticity (Murray (2020) doi:10.1080/01621459.2020.1813587), and the cloglog BART model of Alam and Linero (2025) doi:10.48550/arXiv.2502.00606 for ordinal outcomes.
Install
Health
- OK2026-08-0413 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-08-0112 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-04-2512 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-03-1012 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 0%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Repository practices
7 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/stochastictree/stochtree on 2026-08-16.
Show all practices
Dependencies
Code & Tests
People & History
10 releases. Pick two to compare their code metrics. R releases are shown for context.
- 0.4.5Latest
- 0.4.42026-06-09 · diff ↗
- 0.4.22026-04-29 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 0.4.02026-03-06 · diff ↗
- 0.3.12026-02-12 · diff ↗
- 0.3.02026-01-28 · diff ↗
- 0.2.12025-12-11 · diff ↗
- 0.2.02025-11-22 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.1.12025-02-08 · diff ↗
- 0.1.02025-02-07
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2025-02-07
- Total releases
- 10 / 1 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 1.6 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("stochtree")This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-08-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.