{
  "_id": "6a1f3897b401979e73428df6",
  "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-05-12 09:05:41 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>",
  "MD5sum": "f7ab0639d8f5571956b2ab207fc7403b",
  "_user": "google",
  "_type": "src",
  "_file": "bsynth_1.0.tar.gz",
  "_fileid": "6def4fbfa0062aa28840be272b5bad16e4f493250e20c40ef14cff771944e966",
  "_filesize": 609262,
  "_sha256": "6def4fbfa0062aa28840be272b5bad16e4f493250e20c40ef14cff771944e966",
  "_created": "2026-05-12T09:05:41.000Z",
  "_published": "2026-06-02T20:09:59.335Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79162001348,
      "time": 785,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "6940449408"
    },
    {
      "job": 79162001347,
      "time": 697,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "6940418950"
    },
    {
      "job": 79162001963,
      "time": 788,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6940449523"
    },
    {
      "job": 79162002017,
      "time": 776,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6940445601"
    },
    {
      "job": 79162001545,
      "time": 680,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "6940450831"
    },
    {
      "job": 79162001337,
      "time": 1046,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "6940705990"
    },
    {
      "job": 79162001350,
      "time": 812,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6940542536"
    },
    {
      "job": 79162001440,
      "time": 1372,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6940822041"
    },
    {
      "job": 79162000747,
      "time": 1241,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6940170560"
    },
    {
      "job": 79162000384,
      "time": 174,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 79162001907,
      "time": 1169,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "6940582733"
    },
    {
      "job": 79162001507,
      "time": 1045,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "6940537518"
    },
    {
      "job": 79162002085,
      "time": 1094,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6940556392"
    }
  ],
  "_buildurl": "https://github.com/r-universe/google/actions/runs/25724019349",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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"
  },
  "_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": 218,
    "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",
    "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-05-12T09:16:50.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "292e79900bfa745b2c83fdecdfe50f1da06aa71c264734ac051ab92d6f731a23",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/25724019349"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0",
      "date": "2026-05-12T09:16:24.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "b1c93a221d12a034c3adb76006d6a14f7f3aefcdef6d5e72ae12baa950efdf2b",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/25724019349"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0",
      "date": "2026-05-12T09:16:42.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "9e4676499b7829d7201d7439b48b4b649a3ced8dbfb71c70bf14fac86b2356a6",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/25724019349"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0",
      "date": "2026-05-12T09:16:56.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "10366f3a5c35e85fb4ac357de5dac5b514c934efa81af4c2524ced0e8694a746",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/25724019349"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0",
      "date": "2026-05-12T09:18:27.000Z",
      "arch": "aarch64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "c23fa92c556e8289ba18b89c7d3ad87afebb549cd55c77800a65ff38e37dfd31",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/25724019349"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0",
      "date": "2026-05-12T09:26:06.000Z",
      "arch": "x86_64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "bef8586999f1c8bbc71f3d411307141302d6d6d98733d8e9e437097576277092",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/25724019349"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0",
      "date": "2026-05-12T09:21:49.000Z",
      "arch": "aarch64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "12e612f35f6ec23dcf994c7f21942b50250e6fc41dbb6656e249ddde48721a63",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/25724019349"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0",
      "date": "2026-05-12T09:27:58.000Z",
      "arch": "x86_64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "811fc615700139210f5381282619646f1c5a607a908c50a089bbb3707546596e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/25724019349"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0",
      "date": "2026-05-12T09:16:41.000Z",
      "arch": "x86_64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "833d7ba7e879251c97b2b59af437bbb89dceed53d99713bfd164bf354aaa26ac",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/25724019349"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0",
      "date": "2026-05-12T09:15:49.000Z",
      "arch": "x86_64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "4d2982da9730b9117272e05fc52ba69ed269f994d424f9d5a6eedef0869835f4",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/25724019349"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0",
      "date": "2026-05-12T09:15:51.000Z",
      "arch": "x86_64",
      "commit": "18524d96a96a625e5d74c0fbb0d9ac02addad2d0",
      "fileid": "e72b02646d8852bc5a0a51c52a145912d33c72bbd4a966f270c5522edb4b11b6",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/google/actions/runs/25724019349"
    }
  ]
}