{
  "_id": "6ae339fd3d0f299392dd14f5",
  "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",
  "RoxygenNote": "7.3.1",
  "Biarch": "true",
  "SystemRequirements": "GNU make",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-29 11:54:13 UTC",
    "User": "root"
  },
  "Author": "Ignacio Martinez [aut, cre]\n(<https://orcid.org/0000-0002-3721-8172>), Jaume [aut]",
  "Maintainer": "Ignacio Martinez <ignacio@martinez.fyi>",
  "Config/pak/sysreqs": "make",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2024-06-26 02:42:48 UTC",
  "RemoteUrl": "https://github.com/cran/bsynth",
  "RemoteRef": "HEAD",
  "RemoteSha": "4e7203dc7099b50bed3dc719e87937b750cc773a",
  "_user": "cran",
  "_type": "src",
  "_file": "bsynth_1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/67dfa17f009bf9ce0e6dc34e17cb7db437bf475cd3b6c55405ab592a6fae15d8",
  "_filesize": 609332,
  "_sha256": "67dfa17f009bf9ce0e6dc34e17cb7db437bf475cd3b6c55405ab592a6fae15d8",
  "_expires": "2027-02-06T12:20:11.000Z",
  "_created": "2026-10-29T11:54:13.000Z",
  "_published": "2026-10-29T12:20:13.042Z",
  "_upstream": "https://github.com/cran/bsynth",
  "_status": "success",
  "_maintainer": {
    "name": "Ignacio Martinez",
    "email": "ignacio@martinez.fyi",
    "orcid": "0000-0002-3721-8172"
  },
  "_jobs": [
    {
      "job": 123434162884,
      "time": 674,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12896222143"
    },
    {
      "job": 123434162742,
      "time": 746,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12895259230"
    },
    {
      "job": 123434162662,
      "time": 645,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12896107251"
    },
    {
      "job": 123434162680,
      "time": 604,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12895483904"
    },
    {
      "job": 123425930314,
      "time": 1128,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12894987774"
    },
    {
      "job": 123434162746,
      "time": 343,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12895193223"
    },
    {
      "job": 123434162627,
      "time": 754,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12896615498"
    },
    {
      "job": 123434162801,
      "time": 914,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12895848262"
    },
    {
      "job": 123434162803,
      "time": 810,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12896541429"
    },
    {
      "job": 123434162620,
      "time": 1083,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12897085269"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/40867467212",
  "_commit": {
    "id": "4e7203dc7099b50bed3dc719e87937b750cc773a",
    "author": "Ignacio Martinez <ignacio@martinez.fyi>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0\n",
    "time": 1719369768
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": "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": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 634,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 282,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/bsynth"
  },
  "_devurl": "https://github.com/google/bsynth",
  "_searchresults": 0,
  "_topics": [
    "onetbb",
    "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/manual.pdf",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/google/bsynth",
  "_realowner": "google",
  "_cranurl": false,
  "_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/cran/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",
    "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": "libtbb",
      "package": "libtbb12",
      "headers": "libtbb-dev",
      "source": "onetbb",
      "version": "2022.3.0-2",
      "name": "onetbb",
      "homepage": "https://uxlfoundation.github.io/oneTBB/",
      "description": "parallelism library for C++ - runtime files"
    },
    {
      "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": "2024-06-26 02:42:48",
      "modified": "2024-06-26 02:42:48",
      "commits": 1
    }
  ],
  "_score": 2.6989700043360187,
  "_indexed": false,
  "_nocasepkg": "bsynth",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://google.r-universe.dev/bsynth",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0",
      "date": "2026-10-29T12:03:50.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "4e7203dc7099b50bed3dc719e87937b750cc773a",
      "fileid": "https://r2.ropensci.org/57c4321d123c5165ec0396ef004947d6de6d8859638ccace78c72c733073816c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40867467212"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0",
      "date": "2026-10-29T12:04:16.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "4e7203dc7099b50bed3dc719e87937b750cc773a",
      "fileid": "https://r2.ropensci.org/7a6282d92584bae1d3e5c880c3098b5d9004336b25781a9d62be130b744284ce",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40867467212"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0",
      "date": "2026-10-29T12:03:43.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "4e7203dc7099b50bed3dc719e87937b750cc773a",
      "fileid": "https://r2.ropensci.org/ea04387f3e111c127969bb6f460e20018e27cdd61fe72106595b702506c40885",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40867467212"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0",
      "date": "2026-10-29T12:03:56.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "4e7203dc7099b50bed3dc719e87937b750cc773a",
      "fileid": "https://r2.ropensci.org/3a1e8c2346189ea9125c6af0843cdeea39c58ec12ab1a7ff80f69992ee5c6d7c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40867467212"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0",
      "date": "2026-10-29T12:03:59.000Z",
      "arch": "emscripten",
      "commit": "4e7203dc7099b50bed3dc719e87937b750cc773a",
      "fileid": "https://r2.ropensci.org/6b684512bc5fd32a443d05d39c3f66286384a9edff3152895acd4509e93254b8",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40867467212"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0",
      "date": "2026-10-29T12:05:12.000Z",
      "arch": "aarch64",
      "commit": "4e7203dc7099b50bed3dc719e87937b750cc773a",
      "fileid": "https://r2.ropensci.org/e155d7722ea44d33212c1e6e4b8e93622d0ce446499d82ac56d13f7c1d560e39",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40867467212"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0",
      "date": "2026-10-29T12:03:32.000Z",
      "arch": "x86_64",
      "commit": "4e7203dc7099b50bed3dc719e87937b750cc773a",
      "fileid": "https://r2.ropensci.org/2fa3d17d442e3daee5763dbb7c46db3dab65c19c8935e9acb76772767e05a328",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40867467212"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0",
      "date": "2026-10-29T12:06:21.000Z",
      "arch": "aarch64",
      "commit": "4e7203dc7099b50bed3dc719e87937b750cc773a",
      "fileid": "https://r2.ropensci.org/2101d00dc053f900802be977a0b99c757592c378528115ed919ccffdf7fe1e8f",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40867467212"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0",
      "date": "2026-10-29T12:03:35.000Z",
      "arch": "x86_64",
      "commit": "4e7203dc7099b50bed3dc719e87937b750cc773a",
      "fileid": "https://r2.ropensci.org/93765c837444826b59f8f26baa67be4d685a953c1b1f6e0f8bb5ebe57dc871a1",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40867467212"
    }
  ]
}