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:
bsynth_1.0.tar.gz
bsynth_1.0.zip(r-4.7-x86_64)bsynth_1.0.zip(r-4.7-arm64)bsynth_1.0.zip(r-4.6-x86_64)bsynth_1.0.zip(r-4.6-arm64)bsynth_1.0.zip(r-4.5-x86_64)
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)
bsynth_1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
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
Last updated from:18524d96a9. Checks:13 NOTE, 2 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | NOTE | 677 | ||
| linux-devel-x86_64 | NOTE | 793 | ||
| source / vignettes | OK | 1495 | ||
| linux-release-arm64 | NOTE | 645 | ||
| linux-release-x86_64 | NOTE | 818 | ||
| macos-release-arm64 | NOTE | 402 | ||
| macos-release-x86_64 | NOTE | 1874 | ||
| macos-oldrel-arm64 | NOTE | 692 | ||
| macos-oldrel-x86_64 | NOTE | 876 | ||
| windows-devel-arm64 | NOTE | 897 | ||
| windows-devel-x86_64 | NOTE | 864 | ||
| windows-release-arm64 | NOTE | 1003 | ||
| windows-release-x86_64 | NOTE | 931 | ||
| windows-oldrel-x86_64 | NOTE | 1134 | ||
| wasm-release | OK | 449 |
Exports:%>%bayesianFactorbayesianSynthtime_tiles
Dependencies:abindbackportsbase64encBHbslibcachemcallrcheckmateclicpp11cubelyrdescdigestdistributionaldplyrevaluatefarverfastmapfontawesomefsgenericsggplot2ggridgesgluegridExtragtablehighrhtmltoolshtmlwidgetsinlineisobandjquerylibjsonliteknitrlabelinglifecycleloomagrittrmatrixStatsmemoisemimenumDerivotelpillarpkgbuildpkgconfigposteriorprocessxpspurrrQuickJSRR6rappdirsRColorBrewerRcppRcppEigenRcppParallelrlangrmarkdownrstanrstantoolsS7sassscalesStanHeadersstringistringrtensorAtibbletidyrtidyselecttinytexutf8vctrsviridisLitevizdrawswithrxfunyaml
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| The 'bsynth' package. | bsynth-package bsynth |
| Get Parameter Estimates in Long Format | .get_par_long |
| Returns Data Frame Ready for Plotting with Confidence Intervals | .get_plot_df |
| Prepare Data Frame for Plotting with Multiple Treated Units | .get_plot_df2 |
| Get Synthetic Draws in Tidy Format for Single Treated Unit | .get_synth_draws |
| Get Synthetic Draws in Tidy Format for Single Treated Unit (Predictor Match Model) | .get_synth_draws_predictor_match |
| Get Synthetic Draws in Tidy Format for Multiple Treated Units (3D Array) | .get_synth_draws3d |
| Convert Data to Wide Format | .makeWide |
| Plot Treatment Effect Estimate | .plot_tau |
| Create a Bayesian Synthetic Control Object Using Panel Data | bayesianFactor |
| Create a Bayesian Synthetic Control Object Using Panel Data | bayesianSynth |
| Time Tiles Plot of Intervention Impact | time_tiles |
