Package: flexBART 2.0.5

Sameer K. Deshpande

flexBART: A More Flexible BART Model

Implements a faster and more expressive version of Bayesian Additive Regression Trees that, at a high level, approximates unknown functions as a weighted sum of binary regression tree ensembles. Supports fitting (generalized) linear varying coefficient models that posits a linear relationship between the inverse link and some covariates but allows that relationship to change as a function of other covariates. Additionally supports fitting heteroscedastic BART models, in which both the mean and log-variance are approximated with separate regression tree ensembles. A formula interface allows for different splitting variables to be used in each ensemble. For more details see Deshpande (2025) <doi:10.1080/10618600.2024.2431072> and Deshpande et al. (2026) <doi:10.1214/24-BA1470>.

Authors:Sameer K. Deshpande [aut, cre], George Perrett [aut], Ryan Yee [aut], Cecilia Balocchi [aut], Jennifer Hill [aut]

flexBART_2.0.5.tar.gz
flexBART_2.0.5.zip(r-4.7)flexBART_2.0.5.zip(r-4.6)flexBART_2.0.5.zip(r-4.5)
flexBART_2.0.5.tgz(r-4.6-x86_64)flexBART_2.0.5.tgz(r-4.6-arm64)flexBART_2.0.5.tgz(r-4.5-x86_64)flexBART_2.0.5.tgz(r-4.5-arm64)
flexBART_2.0.5.tar.gz(r-4.7-arm64)flexBART_2.0.5.tar.gz(r-4.7-x86_64)flexBART_2.0.5.tar.gz(r-4.6-arm64)flexBART_2.0.5.tar.gz(r-4.6-x86_64)
flexBART_2.0.5.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
flexBART/json (API)

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

Bug tracker:https://github.com/skdeshpande91/flexbart/issues

Pkgdown/docs site:https://skdeshpande91.github.io

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library

On CRAN:

Conda:

openblascppopenmp

5.68 score 24 stars 9 scripts 174 downloads 3 exports 11 dependencies

Last updated from:67eb2ce3ff. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK310
linux-devel-x86_64OK262
source / vignettesOK309
linux-release-arm64OK278
linux-release-x86_64OK263
macos-release-arm64OK244
macos-release-x86_64OK773
macos-oldrel-arm64OK419
macos-oldrel-x86_64OK305
windows-develOK345
windows-releaseOK337
windows-oldrelOK329
wasm-releaseOK244

Exports:flexBARTpredict.flexBARTrflexBART

Dependencies:codetoolsforeachglmnetiteratorslatticeMatrixRcppRcppArmadilloRcppEigenshapesurvival