{
  "_id": "6a520f8f9b92047c28d5464b",
  "Package": "bsynth",
  "Title": "Bayesian Synthetic Control",
  "Version": "1.0",
  "Authors@R": "c(person(given = \"Ignacio\",\nfamily = \"Martinez\",\nrole = c(\"aut\", \"cre\"),\nemail = \"ignacio@martinez.fyi\",\ncomment = c(ORCID = \"0000-0002-3721-8172\")),\nperson(given = \"Jaume\",\nrole = \"aut\",\nemail = \"vives@mit.edu\"))",
  "Description": "Implements the Bayesian Synthetic Control method for\ncausal inference in comparative case studies. This package\nprovides tools for estimating treatment effects in settings\nwith a single treated unit and multiple control units, allowing\nfor uncertainty quantification and flexible modeling of\ntime-varying effects. The methodology is based on the paper by\nVives and Martinez (2022) <doi:10.48550/arXiv.2206.01779>.",
  "License": "Apache License 2.0",
  "URL": "https://github.com/google/bsynth, https://arxiv.org/abs/2206.01779",
  "BugReports": "https://github.com/google/bsynth/issues",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.1",
  "Biarch": "true",
  "SystemRequirements": "GNU make",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "cmake make libicu-dev libuv1-dev",
  "Repository": "https://google.r-universe.dev",
  "Date/Publication": "2025-03-16 15:41:52 UTC",
  "RemoteUrl": "https://github.com/google/bsynth",
  "RemoteRef": "HEAD",
  "RemoteSha": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-07-11 09:09:08 UTC",
    "User": "root"
  },
  "Author": "Ignacio Martinez [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-3721-8172>),\nJaume [aut]",
  "Maintainer": "Ignacio Martinez <ignacio@martinez.fyi>",
  "_user": "google",
  "_type": "src",
  "_file": "bsynth_1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/f5c606de9e76b7ff029d73954b2cbd3f063dd8dce1f280053f6dfcbc0d79110c",
  "_filesize": 609976,
  "_sha256": "f5c606de9e76b7ff029d73954b2cbd3f063dd8dce1f280053f6dfcbc0d79110c",
  "_expires": "2026-10-19T09:40:29.000Z",
  "_created": "2026-07-11T09:09:08.000Z",
  "_published": "2026-07-11T09:40:31.449Z",
  "_jobs": [
    {
      "job": 86531414479,
      "time": 723,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8247270273"
    },
    {
      "job": 86531414478,
      "time": 774,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8247275979"
    },
    {
      "job": 86531414465,
      "time": 749,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8247273100"
    },
    {
      "job": 86531414464,
      "time": 800,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8247279214"
    },
    {
      "job": 86531414446,
      "time": 762,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8247279784"
    },
    {
      "job": 86531414472,
      "time": 1336,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8247354397"
    },
    {
      "job": 86531414450,
      "time": 385,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8247230349"
    },
    {
      "job": 86531414454,
      "time": 1195,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8247336055"
    },
    {
      "job": 86529981602,
      "time": 1238,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8247181769"
    },
    {
      "job": 86531414433,
      "time": 189,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 86531414456,
      "time": 1135,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8247324494"
    },
    {
      "job": 86531414468,
      "time": 1063,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8247314723"
    },
    {
      "job": 86531414453,
      "time": 927,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8247296290"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/google/actions/runs/29146922642",
  "_status": "success",
  "_upstream": "https://github.com/google/bsynth",
  "_commit": {
    "id": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
    "author": "Ignacio Martinez <martinezig@google.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #9 from andrjohns/rstan2.36-compat\n\nUpdate deprecated syntax",
    "time": 1742139712
  },
  "_maintainer": {
    "name": "Ignacio Martinez",
    "email": "ignacio@martinez.fyi",
    "orcid": "0000-0002-3721-8172"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.4.0",
      "role": "Depends"
    },
    {
      "package": "BH",
      "version": ">= 1.66.0",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.0",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "version": ">= 0.3.3.3.0",
      "role": "LinkingTo"
    },
    {
      "package": "RcppParallel",
      "version": ">= 5.0.1",
      "role": "LinkingTo"
    },
    {
      "package": "rstan",
      "version": ">= 2.18.1",
      "role": "LinkingTo"
    },
    {
      "package": "StanHeaders",
      "version": ">= 2.18.0",
      "role": "LinkingTo"
    },
    {
      "package": "R6",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.0",
      "role": "Imports"
    },
    {
      "package": "RcppParallel",
      "version": ">= 5.0.1",
      "role": "Imports"
    },
    {
      "package": "cubelyr",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "ggridges",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "rstan",
      "version": ">= 2.18.1",
      "role": "Imports"
    },
    {
      "package": "rstantools",
      "version": ">= 2.1.1",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "vizdraws",
      "version": ">= 1.1",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "roxygen2",
      "role": "Suggests"
    },
    {
      "package": "gsynth",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "google",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 22,
  "_contributors": [
    {
      "user": "ignacio82",
      "count": 12,
      "uuid": 1833309
    },
    {
      "user": "jvivesb",
      "count": 4,
      "uuid": 17208532
    },
    {
      "user": "jeffreyoldham",
      "count": 2,
      "uuid": 64656025
    },
    {
      "user": "andrjohns",
      "count": 1,
      "uuid": 27717896
    },
    {
      "user": "michaelchirico",
      "count": 1,
      "uuid": 7606389
    }
  ],
  "_userbio": {
    "uuid": 1342004,
    "type": "organization",
    "name": "Google",
    "followers": 75317,
    "description": "Google ❤️ Open Source"
  },
  "_downloads": {
    "count": 296,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/bsynth"
  },
  "_devurl": "https://github.com/google/bsynth",
  "_searchresults": 4,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/bsynth.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/google/bsynth",
  "_realowner": "google",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0",
      "date": "2024-06-25"
    }
  ],
  "_exports": [
    "%>%",
    "bayesianFactor",
    "bayesianSynth",
    "time_tiles"
  ],
  "_help": [
    {
      "page": "bsynth-package",
      "title": "The 'bsynth' package.",
      "topics": [
        "bsynth-package",
        "bsynth"
      ]
    },
    {
      "page": "dot-get_par_long",
      "title": "Get Parameter Estimates in Long Format",
      "topics": [
        ".get_par_long"
      ]
    },
    {
      "page": "dot-get_plot_df",
      "title": "Returns Data Frame Ready for Plotting with Confidence Intervals",
      "topics": [
        ".get_plot_df"
      ]
    },
    {
      "page": "dot-get_plot_df2",
      "title": "Prepare Data Frame for Plotting with Multiple Treated Units",
      "topics": [
        ".get_plot_df2"
      ]
    },
    {
      "page": "dot-get_synth_draws",
      "title": "Get Synthetic Draws in Tidy Format for Single Treated Unit",
      "topics": [
        ".get_synth_draws"
      ]
    },
    {
      "page": "dot-get_synth_draws_predictor_match",
      "title": "Get Synthetic Draws in Tidy Format for Single Treated Unit (Predictor Match Model)",
      "topics": [
        ".get_synth_draws_predictor_match"
      ]
    },
    {
      "page": "dot-get_synth_draws3d",
      "title": "Get Synthetic Draws in Tidy Format for Multiple Treated Units (3D Array)",
      "topics": [
        ".get_synth_draws3d"
      ]
    },
    {
      "page": "dot-makeWide",
      "title": "Convert Data to Wide Format",
      "topics": [
        ".makeWide"
      ]
    },
    {
      "page": "dot-plot_tau",
      "title": "Plot Treatment Effect Estimate",
      "topics": [
        ".plot_tau"
      ]
    },
    {
      "page": "bayesianFactor",
      "title": "Create a Bayesian Synthetic Control Object Using Panel Data",
      "topics": [
        "bayesianFactor"
      ]
    },
    {
      "page": "bayesianSynth",
      "title": "Create a Bayesian Synthetic Control Object Using Panel Data",
      "topics": [
        "bayesianSynth"
      ]
    },
    {
      "page": "time_tiles",
      "title": "Time Tiles Plot of Intervention Impact",
      "topics": [
        "time_tiles"
      ]
    }
  ],
  "_readme": "https://github.com/google/bsynth/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "base64enc",
    "BH",
    "bslib",
    "cachem",
    "callr",
    "checkmate",
    "cli",
    "cpp11",
    "cubelyr",
    "desc",
    "digest",
    "distributional",
    "dplyr",
    "evaluate",
    "farver",
    "fastmap",
    "fontawesome",
    "fs",
    "generics",
    "ggplot2",
    "ggridges",
    "glue",
    "gridExtra",
    "gtable",
    "highr",
    "htmltools",
    "htmlwidgets",
    "inline",
    "isoband",
    "jquerylib",
    "jsonlite",
    "knitr",
    "labeling",
    "lifecycle",
    "loo",
    "magrittr",
    "matrixStats",
    "memoise",
    "mime",
    "numDeriv",
    "otel",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "posterior",
    "processx",
    "ps",
    "purrr",
    "QuickJSR",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "RcppParallel",
    "rlang",
    "rmarkdown",
    "rstan",
    "rstantools",
    "S7",
    "sass",
    "scales",
    "StanHeaders",
    "stringi",
    "stringr",
    "tensorA",
    "tibble",
    "tidyr",
    "tidyselect",
    "tinytex",
    "utf8",
    "vctrs",
    "viridisLite",
    "vizdraws",
    "withr",
    "xfun",
    "yaml"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "multiple_treated.Rmd",
      "filename": "multiple_treated.html",
      "title": "Multiple Treated",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Background",
        "Bayesian Synthetic Control with Covariates",
        "Fit",
        "Visualize the synthetic controls for each treated unit",
        "Visualize the treatment effect"
      ],
      "created": "2021-08-16 21:03:21",
      "modified": "2024-06-27 19:58:02",
      "commits": 4
    }
  ],
  "_score": 5.643452676486188,
  "_indexed": true,
  "_nocasepkg": "bsynth",
  "_universes": [
    "google"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0",
      "date": "2026-07-11T09:20:14.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "https://r2.ropensci.org/dc712d44986d6b1d4acfd22de0533b41ce5cd4bbecba6fbba79b1da107d2b4c4",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/29146922642"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0",
      "date": "2026-07-11T09:20:16.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "https://r2.ropensci.org/156c2d6bfdb8feb4d34c74951fc0cfe08dbb2510aa69e5585ddd7e73e2e1e342",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/29146922642"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0",
      "date": "2026-07-11T09:20:22.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "https://r2.ropensci.org/b89335a1e0464da90f4381e09f960296aecf6af8eea343b14fd5a1be25e586a8",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/29146922642"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0",
      "date": "2026-07-11T09:20:27.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "https://r2.ropensci.org/3737503b2b15a343f166a75045b5ccd4fb2a4ecbe966d8fd89c64b6ae16bf06b",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/29146922642"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0",
      "date": "2026-07-11T09:20:15.000Z",
      "arch": "aarch64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "https://r2.ropensci.org/74509046ac31757336bb4feabf5d006868e72ebfed2daa566bd4ab4928c60554",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/29146922642"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0",
      "date": "2026-07-11T09:21:18.000Z",
      "arch": "x86_64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "https://r2.ropensci.org/8ff576a5b3edad5de45ca84a79e568d6028fe31d841008f15248e9969c10c6d0",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/29146922642"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0",
      "date": "2026-07-11T09:18:52.000Z",
      "arch": "aarch64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "https://r2.ropensci.org/06992d3b628fa83331e74885af3bd91c763f2630e4f3a48a6ee812985ddedc80",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/29146922642"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0",
      "date": "2026-07-11T09:21:14.000Z",
      "arch": "x86_64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "https://r2.ropensci.org/ebc85f92134934327b8dfeb659715b8fbe5285ac8c36f885b0476bfc2d7962cb",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/29146922642"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0",
      "date": "2026-07-11T09:19:28.000Z",
      "arch": "x86_64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "https://r2.ropensci.org/39b599fabe4ac3cca03ce01ec2faf2c25148664a3a8c58db3f06efdae2275cf9",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/29146922642"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0",
      "date": "2026-07-11T09:19:25.000Z",
      "arch": "x86_64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "https://r2.ropensci.org/3510c5a5c1630827e6de9838c90c4f7c2cac9b976287bd2601a2e94b02c86e26",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/29146922642"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0",
      "date": "2026-07-11T09:19:51.000Z",
      "arch": "x86_64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "https://r2.ropensci.org/b79766d3b231685c9a89c9dcc645a9b1f6424fa6dd9437f980f082325e6c1983",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/29146922642"
    }
  ]
}