Learn R Programming

VCBART (version 1.2.4)

Fit Varying Coefficient Models with Bayesian Additive Regression Trees

Description

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. (2024) .

Copy Link

Version

Install

install.packages('VCBART')

Version

1.2.4

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Sameer K. Deshpande

Last Published

December 9th, 2025

Functions in VCBART (1.2.4)

predict_betas

Compute posterior predictive evaluates of covariate effect functions.
VCBART_ind

Fit a VCBART model with independent error structure
summarize_beta

Compute posterior mean and 95% credible interval for evaluations of each coefficient function.
VCBART_cs

Fit a VCBART model with compound symmetry error structure