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. (2024) <doi:10.1214/24-BA1470>.

Version: 2.0.3
Imports: Rcpp (≥ 1.0.12), glmnet (≥ 4.0), methods
LinkingTo: Rcpp, RcppArmadillo
Suggests: igraph, knitr, quarto
Published: 2026-02-12
DOI: 10.32614/CRAN.package.flexBART (may not be active yet)
Author: Sameer K. Deshpande ORCID iD [aut, cre], George Perrett ORCID iD [aut], Ryan Yee ORCID iD [aut], Cecilia Balocchi ORCID iD [aut], Jennifer Hill ORCID iD [aut]
Maintainer: Sameer K. Deshpande <sameer.deshpande at wisc.edu>
License: GPL (≥ 3)
URL: https://skdeshpande91.github.io/flexBART/
NeedsCompilation: yes
Citation: flexBART citation info
CRAN checks: flexBART results

Documentation:

Reference manual: flexBART.html , flexBART.pdf

Downloads:

Package source: flexBART_2.0.3.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=flexBART to link to this page.