bsynth: Bayesian Synthetic Control

Implements the Bayesian Synthetic Control method for causal inference in comparative case studies. This package provides tools for estimating treatment effects in settings with a single treated unit and multiple control units, allowing for uncertainty quantification and flexible modeling of time-varying effects. The methodology is based on the paper by Vives and Martinez (2022) <doi:10.48550/arXiv.2206.01779>.

Version: 1.0
Depends: R (≥ 3.4.0)
Imports: R6, Rcpp (≥ 0.12.0), RcppParallel (≥ 5.0.1), cubelyr, dplyr, ggplot2, glue, magrittr, methods, purrr, rstan (≥ 2.18.1), rstantools (≥ 2.1.1), scales, tibble, tidyr, vizdraws (≥ 1.1), stats, rlang
LinkingTo: BH (≥ 1.66.0), Rcpp (≥ 0.12.0), RcppEigen (≥, RcppParallel (≥ 5.0.1), rstan (≥ 2.18.1), StanHeaders (≥ 2.18.0)
Suggests: knitr, rmarkdown, roxygen2, gsynth, testthat (≥ 3.0.0)
Published: 2024-06-25
DOI: 10.32614/CRAN.package.bsynth
Author: Ignacio Martinez ORCID iD [aut, cre], Jaume [aut]
Maintainer: Ignacio Martinez <ignacio at>
License: Apache License 2.0
NeedsCompilation: yes
SystemRequirements: GNU make
Materials: README
CRAN checks: bsynth results


Reference manual: bsynth.pdf
Vignettes: Multiple Treated


Package source: bsynth_1.0.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): bsynth_1.0.tgz, r-oldrel (arm64): bsynth_1.0.tgz, r-release (x86_64): bsynth_1.0.tgz, r-oldrel (x86_64): bsynth_1.0.tgz


Please use the canonical form to link to this page.