Package: bsynth 1.0

Ignacio Martinez

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>.

Authors:Ignacio Martinez [aut, cre], Jaume [aut]

bsynth_1.0.tar.gz
bsynth_1.0.zip(r-4.7)bsynth_1.0.zip(r-4.6)bsynth_1.0.zip(r-4.5)
bsynth_1.0.tgz(r-4.6-x86_64)bsynth_1.0.tgz(r-4.6-arm64)bsynth_1.0.tgz(r-4.5-x86_64)bsynth_1.0.tgz(r-4.5-arm64)
bsynth_1.0.tar.gz(r-4.7-arm64)bsynth_1.0.tar.gz(r-4.7-x86_64)bsynth_1.0.tar.gz(r-4.6-arm64)bsynth_1.0.tar.gz(r-4.6-x86_64)
manual.pdf |manual.html
card.svg |card.png
bsynth/json (API)

# Install 'bsynth' in R:
install.packages('bsynth', repos = c('https://google.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/google/bsynth/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

5.64 score 22 stars 4 scripts 218 downloads 4 exports 78 dependencies

Last updated from:18524d96a9. Checks:11 NOTE, 1 OK, 1 FAIL. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64NOTE785
linux-devel-x86_64NOTE697
source / vignettesOK1241
linux-release-arm64NOTE788
linux-release-x86_64NOTE776
macos-release-arm64NOTE812
macos-release-x86_64NOTE1372
macos-oldrel-arm64NOTE680
macos-oldrel-x86_64NOTE1046
windows-develNOTE1169
windows-releaseNOTE1094
windows-oldrelNOTE1045
wasm-releaseFAIL174

Exports:%>%bayesianFactorbayesianSynthtime_tiles

Dependencies:abindbackportsbase64encBHbslibcachemcallrcheckmateclicpp11cubelyrdescdigestdistributionaldplyrevaluatefarverfastmapfontawesomefsgenericsggplot2ggridgesgluegridExtragtablehighrhtmltoolshtmlwidgetsinlineisobandjquerylibjsonliteknitrlabelinglifecycleloomagrittrmatrixStatsmemoisemimenumDerivpillarpkgbuildpkgconfigposteriorprocessxpspurrrQuickJSRR6rappdirsRColorBrewerRcppRcppEigenRcppParallelrlangrmarkdownrstanrstantoolsS7sassscalesStanHeadersstringistringrtensorAtibbletidyrtidyselecttinytexutf8vctrsviridisLitevizdrawswithrxfunyaml

Multiple Treated

Rendered frommultiple_treated.Rmdusingknitr::rmarkdownon May 12 2026.

Last update: 2024-06-27
Started: 2021-08-16