Learn R Programming

flexBCF (version 1.0.2)

Fast & Flexible Implementation of Bayesian Causal Forests

Description

A faster implementation of Bayesian Causal Forests (BCF; Hahn et al. (2020) ), which uses regression tree ensembles to estimate the conditional average treatment effect of a binary treatment on a scalar output as a function of many covariates. This implementation avoids many redundant computations and memory allocations present in the original BCF implementation, allowing the model to be fit to larger datasets. The implementation was originally developed for the 2022 American Causal Inference Conference's Data Challenge. See Kokandakar et al. (2023) for more details.

Copy Link

Version

Install

install.packages('flexBCF')

Monthly Downloads

95

Version

1.0.2

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Sameer K. Deshpande

Last Published

November 25th, 2025

Functions in flexBCF (1.0.2)

get_tree_fits

Get fits of regression tree ensembles
average_tree_fits

Summarize posterior distribution of the average fit of tree ensembles.
flexBCF

A faster and more flexible Bayesian Causal Forests