Skip to content

flexBCF

Fast & Flexible Implementation of Bayesian Causal Forests

v1.0.2 · Nov 25, 2025 · GPL (>= 3)

Description

A faster implementation of Bayesian Causal Forests (BCF; Hahn et al. (2020) <doi:10.1214/19-BA1195>), 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) <doi:10.1353/obs.2023.0024> for more details.

Downloads

CRAN

178

Last 30 days

23096th

523

Last 90 days

1.1K

Last year

Trend: +45.9% (30d vs prior 30d)

r2u

38

Last 30 days

117

Last 90 days

387

Last year

Trend: -19.2% (30d vs prior 30d)

r2u: no daily series yet

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  5.4Mb
  sub-directories of 1Mb or more:
    libs   5.3Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  5.5Mb
  sub-directories of 1Mb or more:
    libs   5.4Mb
ERROR 11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/flexBCF.Rcheck/00install.out' for details.
NOTE r-oldrel-macos-arm64

installed package size

installed size is  5.4Mb
  sub-directories of 1Mb or more:
    libs   5.3Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  5.5Mb
  sub-directories of 1Mb or more:
    libs   5.4Mb
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  5.4Mb
  sub-directories of 1Mb or more:
    libs   5.3Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  5.5Mb
  sub-directories of 1Mb or more:
    libs   5.4Mb

Dependency Network

Dependencies Reverse dependencies Rcpp flexBCF

Version History

1 tracked
new 1.0.2 Mar 10, 2026

R Observatory began tracking this package on Mar 10, 2026; it first appeared on CRAN Nov 25, 2025. Releases before tracking aren’t shown.