VCBART: Fit Varying Coefficient Models with Bayesian Additive Regression Trees

Fits linear varying coefficient (VC) models, which assert a linear relationship between an outcome and several covariates but allow that relationship (i.e., the coefficients or slopes in the linear regression) to change as functions of additional variables known as effect modifiers, by approximating the coefficient functions with Bayesian Additive Regression Trees. Implements a Metropolis-within-Gibbs sampler to simulate draws from the posterior over coefficient function evaluations. VC models with independent observations or repeated observations can be fit. For more details see Deshpande et al. (2026) <doi:10.1214/24-BA1470>.

Getting started

Package details

AuthorSameer K. Deshpande [aut, cre] (ORCID: <https://orcid.org/0000-0003-4116-5533>), Ray Bai [aut] (ORCID: <https://orcid.org/0000-0002-7190-7844>), Cecilia Balocchi [aut] (ORCID: <https://orcid.org/0000-0002-1234-6063>), Jennifer Starling [aut], Jordan Weiss [aut]
MaintainerSameer K. Deshpande <sameer.deshpande@wisc.edu>
LicenseGPL (>= 3)
Version1.2.5
URL https://github.com/skdeshpande91/VCBART
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("VCBART")

Try the VCBART package in your browser

Any scripts or data that you put into this service are public.

VCBART documentation built on April 21, 2026, 9:07 a.m.