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>.
Package details |
|
|---|---|
| Author | Sameer 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] |
| Maintainer | Sameer K. Deshpande <sameer.deshpande@wisc.edu> |
| License | GPL (>= 3) |
| Version | 1.2.5 |
| URL | https://github.com/skdeshpande91/VCBART |
| Package repository | View on CRAN |
| Installation |
Install the latest version of this package by entering the following in R:
|
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.