{
  "_id": "6a4a0adeb9bf02698bd559ac",
  "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-06-11 11:25:42 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/eec3a4aa5481ad765263e3a36996b310d202bf08e45ff1f798c2eee48ff52fd7",
  "_filesize": 609754,
  "_sha256": "eec3a4aa5481ad765263e3a36996b310d202bf08e45ff1f798c2eee48ff52fd7",
  "_expires": "2026-10-13T07:42:20.000Z",
  "_created": "2026-06-11T11:25:42.000Z",
  "_published": "2026-07-05T07:42:22.265Z",
  "_jobs": [
    {
      "job": 85203875434,
      "time": 742,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7563198363"
    },
    {
      "job": 85203875442,
      "time": 634,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7563158748"
    },
    {
      "job": 85203875603,
      "time": 721,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7563191216"
    },
    {
      "job": 85203875669,
      "time": 704,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7563184973"
    },
    {
      "job": 85203875696,
      "time": 977,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7563282994"
    },
    {
      "job": 85203875532,
      "time": 1014,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7563297864"
    },
    {
      "job": 85203875420,
      "time": 784,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7563212666"
    },
    {
      "job": 85203875446,
      "time": 1312,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7563400474"
    },
    {
      "job": 85203875203,
      "time": 1233,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7562929589"
    },
    {
      "job": 85203875422,
      "time": 198,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 85203875407,
      "time": 1034,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7563304593"
    },
    {
      "job": 85203875562,
      "time": 1142,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7563342756"
    },
    {
      "job": 85203875579,
      "time": 1160,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7563349309"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/google/actions/runs/27342815723",
  "_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": "noble",
  "_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",
    "description": "Google ❤️ Open Source"
  },
  "_downloads": {
    "count": 177,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/bsynth"
  },
  "_devurl": "https://github.com/google/bsynth",
  "_searchresults": 4,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_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": "14.2.0-4ubuntu2~24.04.1",
      "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-06-11T11:36:50.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "https://r2.ropensci.org/6355d21d246a4d4b4aaab85cb74bb3a1cc8822d7df61c9004ae0d0872ff72b68",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/27342815723"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0",
      "date": "2026-06-11T11:36:34.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "https://r2.ropensci.org/8c6b69b7113d413895ca4e51c2245d5d3d3ce417dac1e606b3b55787154504ba",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/27342815723"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0",
      "date": "2026-06-11T11:36:41.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "https://r2.ropensci.org/8c8ec2eef10b6bca936f257cfa7f6144b77311af299967dd7338adcb714debc4",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/27342815723"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0",
      "date": "2026-06-11T11:36:29.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "https://r2.ropensci.org/ea71a58b2f5230f46035679f0994cfcdb1dc28882619692d94931a37e95fc306",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/27342815723"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0",
      "date": "2026-06-11T11:36:24.000Z",
      "arch": "aarch64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "https://r2.ropensci.org/0735b863e16fabf2b5e70555bf4485c0db80c20723ef06bbc9e54d0f65358685",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/27342815723"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0",
      "date": "2026-06-11T11:37:18.000Z",
      "arch": "x86_64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "https://r2.ropensci.org/0776a1fc961c6e2c7cb77c43bf0664d4e9b59867478dd4b14aa46c1b2773df57",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/27342815723"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0",
      "date": "2026-06-11T11:36:10.000Z",
      "arch": "aarch64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "https://r2.ropensci.org/4407b518b656c8351988fec9b51f4791ab4a7e70c8a61a18f39e89a6fcd7e034",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/27342815723"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0",
      "date": "2026-06-11T11:37:18.000Z",
      "arch": "x86_64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "https://r2.ropensci.org/1b143779367db2868afb5d817fc90224008cc8f1cedba4b41abd2040431ecfe9",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/27342815723"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0",
      "date": "2026-06-11T11:35:41.000Z",
      "arch": "x86_64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "https://r2.ropensci.org/ef1ca50caa899414046d55281622be2bc43d4f483608841d7392a60a906bf071",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/27342815723"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0",
      "date": "2026-06-11T11:36:06.000Z",
      "arch": "x86_64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "https://r2.ropensci.org/409c65fd54df304ec0167422ddc6a7874de6e82726c105d0ccb4fd192893c1ab",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/27342815723"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0",
      "date": "2026-06-11T11:36:00.000Z",
      "arch": "x86_64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "https://r2.ropensci.org/bf4a1c431fbc733263db97c98afca59487bdff075c0b6d6377d3a39670567215",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/27342815723"
    }
  ]
}