{
  "_id": "6ac294dcd743750d376d8f55",
  "Package": "Synth",
  "Version": "1.2-0",
  "Date": "2026-10-04",
  "Title": "Synthetic Control Group Method for Comparative Case Studies",
  "Authors@R": "c(person(given = 'Jens', family = 'Hainmueller', role = c('aut','cre'), email = 'jhain@stanford.edu'), person(given = 'Alexis', family = 'Diamond', role = 'aut'))",
  "Description": "Implements the synthetic control group method for\ncomparative case studies as described in Abadie and Gardeazabal\n(2003) and Abadie, Diamond, and Hainmueller (2010, 2011, 2014).\nThe synthetic control method allows for effect estimation in\nsettings where a single unit (a state, country, firm, etc.) is\nexposed to an event or intervention. It provides a data-driven\nprocedure to construct synthetic control units based on a\nweighted combination of comparison units that approximates the\ncharacteristics of the unit that is exposed to the\nintervention. A combination of comparison units often provides\na better comparison for the unit exposed to the intervention\nthan any comparison unit alone.",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "License": "GPL (>= 2)",
  "URL": "https://web.stanford.edu/~jhain/",
  "Encoding": "UTF-8",
  "Config/pak/sysreqs": "cmake",
  "Repository": "https://j-hai.r-universe.dev",
  "Date/Publication": "2026-10-04 15:28:51 UTC",
  "RemoteUrl": "https://github.com/j-hai/synth",
  "RemoteRef": "HEAD",
  "RemoteSha": "b3e2eaa6ebda879ca2e79d34e2f810d9e6b747a0",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-04 17:50:34 UTC",
    "User": "root"
  },
  "Author": "Jens Hainmueller [aut, cre],\nAlexis Diamond [aut]",
  "Maintainer": "Jens Hainmueller <jhain@stanford.edu>",
  "_user": "j-hai",
  "_type": "src",
  "_file": "Synth_1.2-0.tar.gz",
  "_fileid": "https://r2.ropensci.org/8f5d359fcef227a83ff05eb54458132aa5a618c29b13b96789e67c9c60dfaf55",
  "_filesize": 1211478,
  "_sha256": "8f5d359fcef227a83ff05eb54458132aa5a618c29b13b96789e67c9c60dfaf55",
  "_expires": "2027-01-12T18:03:06.000Z",
  "_created": "2026-10-04T17:50:34.000Z",
  "_published": "2026-10-04T18:03:08.376Z",
  "_jobs": [
    {
      "job": 111494247758,
      "time": 436,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11310387682"
    },
    {
      "job": 111494247735,
      "time": 480,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11310463083"
    },
    {
      "job": 111494247716,
      "time": 329,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11311116499"
    },
    {
      "job": 111494247737,
      "time": 336,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11311050483"
    },
    {
      "job": 111492996099,
      "time": 408,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11309379880"
    },
    {
      "job": 111494247741,
      "time": 95,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11309669479"
    },
    {
      "job": 111494247784,
      "time": 459,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11310886698"
    },
    {
      "job": 111494247720,
      "time": 324,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11309959419"
    },
    {
      "job": 111494247754,
      "time": 446,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11311280524"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/j-hai/actions/runs/37221621657",
  "_status": "success",
  "_upstream": "https://github.com/j-hai/synth",
  "_commit": {
    "id": "b3e2eaa6ebda879ca2e79d34e2f810d9e6b747a0",
    "author": "j-hai <115841204+j-hai@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #5 from j-hai/docs-after-rename-and-operator-fixes\n\nDocs and release housekeeping for 1.2-0; keep the 1.1-10 argument order in synth()",
    "time": 1791127731
  },
  "_maintainer": {
    "name": "Jens Hainmueller",
    "email": "jhain@stanford.edu",
    "login": "j-hai",
    "description": "",
    "uuid": 115841204
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.6.0",
      "role": "Depends"
    },
    {
      "package": "kernlab",
      "role": "Imports"
    },
    {
      "package": "optimx",
      "role": "Imports"
    },
    {
      "package": "rgenoud",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "CVXR",
      "version": ">= 1.8.0",
      "role": "Suggests"
    },
    {
      "package": "torch",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    }
  ],
  "_owner": "j-hai",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2026-18",
      "n": 7
    },
    {
      "week": "2026-19",
      "n": 2
    },
    {
      "week": "2026-20",
      "n": 6
    },
    {
      "week": "2026-22",
      "n": 1
    },
    {
      "week": "2026-40",
      "n": 3
    }
  ],
  "_tags": [
    {
      "name": "v1.1-10",
      "date": "2026-04-28"
    },
    {
      "name": "v1.2-0-rc1",
      "date": "2026-05-05"
    }
  ],
  "_stars": 3,
  "_contributors": [
    {
      "user": "j-hai",
      "count": 30,
      "uuid": 115841204
    }
  ],
  "_userbio": {
    "uuid": 115841204,
    "type": "user",
    "name": "j-hai",
    "followers": 2
  },
  "_downloads": {
    "count": 2056,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/Synth"
  },
  "_mentions": 9,
  "_devurl": "https://github.com/j-hai/synth",
  "_searchresults": 938,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/Synth.html"
  ],
  "_homeurl": "https://github.com/j-hai/synth",
  "_realowner": "j-hai",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1-2",
      "date": "2007-02-11"
    },
    {
      "version": "0.1-3",
      "date": "2007-09-23"
    },
    {
      "version": "0.1-4",
      "date": "2007-10-18"
    },
    {
      "version": "0.1-5",
      "date": "2007-12-19"
    },
    {
      "version": "0.1-6",
      "date": "2008-09-11"
    },
    {
      "version": "0.1-8",
      "date": "2011-03-15"
    },
    {
      "version": "0.1-9",
      "date": "2011-04-27"
    },
    {
      "version": "1.1-1",
      "date": "2011-09-28"
    },
    {
      "version": "1.1-2",
      "date": "2011-12-27"
    },
    {
      "version": "1.1-3",
      "date": "2012-10-24"
    },
    {
      "version": "1.1-4",
      "date": "2013-08-12"
    },
    {
      "version": "1.1-5",
      "date": "2014-01-26"
    },
    {
      "version": "1.1-6",
      "date": "2022-06-09"
    },
    {
      "version": "1.1-8",
      "date": "2023-06-02"
    },
    {
      "version": "1.1-9",
      "date": "2025-10-19"
    },
    {
      "version": "1.1-10",
      "date": "2026-04-29"
    }
  ],
  "_exports": [
    "collect.optimx",
    "dataprep",
    "fn.V",
    "gaps.plot",
    "path.plot",
    "spec.pred.func",
    "synth",
    "synth_data",
    "synth_inference",
    "synth_mspe_plot",
    "synth_mspe_test",
    "synth_placebos",
    "synth.tab"
  ],
  "_datasets": [
    {
      "name": "basque",
      "title": "Panel Data from Spanish Regions to demonstrate the use of the Synthetic Control Method",
      "object": "basque",
      "file": "basque.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "regionno",
        "regionname",
        "year",
        "gdpcap",
        "sec.agriculture",
        "sec.energy",
        "sec.industry",
        "sec.construction",
        "sec.services.venta",
        "sec.services.nonventa",
        "school.illit",
        "school.prim",
        "school.med",
        "school.high",
        "school.post.high",
        "popdens",
        "invest"
      ],
      "rows": 774,
      "table": true,
      "tojson": true
    },
    {
      "name": "smoking",
      "title": "Annual State-Level Cigarette Sales in the United States, 1970-2000",
      "object": "smoking",
      "file": "smoking.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "state_id",
        "state_name",
        "year",
        "cigsale",
        "lnincome",
        "beer",
        "age15to24",
        "retprice"
      ],
      "rows": 1209,
      "table": true,
      "tojson": true
    },
    {
      "name": "synth.data",
      "title": "Panel Data to demonstrate the use of the Synthetic Control Method",
      "object": "synth.data",
      "file": "synth.data.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "unit.num",
        "year",
        "name",
        "Y",
        "X1",
        "X2",
        "X3"
      ],
      "rows": 168,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "basque",
      "title": "Panel Data from Spanish Regions to demonstrate the use of the Synthetic Control Method",
      "topics": [
        "basque"
      ]
    },
    {
      "page": "collect.optimx",
      "title": "Collect results from optimx optimization methods",
      "topics": [
        "collect.optimx"
      ]
    },
    {
      "page": "dataprep",
      "title": "Constructs a list of matrices from panel dataset to be loaded into synth()",
      "topics": [
        "dataprep"
      ]
    },
    {
      "page": "fn.V",
      "title": "Loss Function for nested optimization of W and V weights",
      "topics": [
        "fn.V"
      ]
    },
    {
      "page": "gaps.plot",
      "title": "Plots Gap in Outcome Trajectories between the Treated and its Synthetic Control Unit",
      "topics": [
        "gaps.plot"
      ]
    },
    {
      "page": "path.plot",
      "title": "Plots Outcome Trajectories for Treated Unit and its Synthetic Control Unit",
      "topics": [
        "path.plot"
      ]
    },
    {
      "page": "plot.synth_inference",
      "title": "Plot a synthetic control prediction band",
      "topics": [
        "plot.synth_inference"
      ]
    },
    {
      "page": "plot.synth_placebos",
      "title": "Overlay placebo gap series with the treated gap",
      "topics": [
        "plot.synth_placebos"
      ]
    },
    {
      "page": "smoking",
      "title": "Annual State-Level Cigarette Sales in the United States, 1970-2000",
      "topics": [
        "smoking"
      ]
    },
    {
      "page": "spec.pred.func",
      "title": "Special Predictor Function for Dataprep",
      "topics": [
        "spec.pred.func"
      ]
    },
    {
      "page": "synth",
      "title": "Constructs synthetic control units for comparative case studies",
      "topics": [
        "synth"
      ]
    },
    {
      "page": "synth_data",
      "title": "Build inputs for 'synth()' from a panel data frame",
      "topics": [
        "synth_data"
      ]
    },
    {
      "page": "synth_inference",
      "title": "Prediction intervals for synthetic control counterfactuals",
      "topics": [
        "print.synth_inference",
        "synth_inference"
      ]
    },
    {
      "page": "synth_mspe_plot",
      "title": "Plot of placebo post/pre MSPE ratios",
      "topics": [
        "synth_mspe_plot"
      ]
    },
    {
      "page": "synth_mspe_test",
      "title": "One-sided placebo p-value via post/pre MSPE ratio",
      "topics": [
        "synth_mspe_test"
      ]
    },
    {
      "page": "synth_placebos",
      "title": "In-space placebo refits for synthetic control inference",
      "topics": [
        "print.synth_placebos",
        "synth_placebos"
      ]
    },
    {
      "page": "synth.data",
      "title": "Panel Data to demonstrate the use of the Synthetic Control Method",
      "topics": [
        "synth.data"
      ]
    },
    {
      "page": "synth.tab",
      "title": "Creates Tables that Summarize Results of Synthetic Control Group Method",
      "topics": [
        "synth.tab"
      ]
    }
  ],
  "_readme": "https://github.com/j-hai/synth/raw/HEAD/README.md",
  "_rundeps": [
    "kernlab",
    "nloptr",
    "numDeriv",
    "optimx",
    "pracma",
    "rgenoud"
  ],
  "_vignettes": [
    {
      "source": "inference.Rmd",
      "filename": "inference.html",
      "title": "Inference for Synthetic Control Estimators",
      "author": "Jens Hainmueller and Alexis Diamond",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Which inference method should I use?",
        "1. Build the synthetic control",
        "2. Prediction intervals: synth_inference()",
        "Split-conformal (default)",
        "Parametric (Gaussian residuals)",
        "When to use which",
        "3. Placebo inference",
        "Generate the placebos",
        "Test",
        "Plot the placebo distribution",
        "Plot the placebo gaps",
        "4. Combining prediction intervals and placebos",
        "Alternative QP backends",
        "See also",
        "References"
      ],
      "created": "2026-05-05 00:41:36",
      "modified": "2026-10-04 13:37:03",
      "commits": 6
    },
    {
      "source": "synth-quickstart.Rmd",
      "filename": "synth-quickstart.html",
      "title": "Quickstart: building a synthetic control with Synth",
      "author": "Jens Hainmueller and Alexis Diamond",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Build the inputs",
        "2. Fit the synthetic control",
        "3. Inspect",
        "4. What next?"
      ],
      "created": "2026-05-05 00:41:36",
      "modified": "2026-10-04 13:37:03",
      "commits": 3
    }
  ],
  "_score": 8.89268097191697,
  "_indexed": true,
  "_nocasepkg": "synth",
  "_universes": [
    "j-hai"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2-0",
      "date": "2026-10-04T17:52:46.000Z",
      "distro": "resolute",
      "commit": "b3e2eaa6ebda879ca2e79d34e2f810d9e6b747a0",
      "fileid": "https://r2.ropensci.org/85c90ed81cf3026b5dd11faed846ddd02f2e56d30f9dcda1a17ef014de227fdf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/37221621657"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.2-0",
      "date": "2026-10-04T17:53:32.000Z",
      "distro": "resolute",
      "commit": "b3e2eaa6ebda879ca2e79d34e2f810d9e6b747a0",
      "fileid": "https://r2.ropensci.org/653410be80df03b691e02ad87e57d4963a5d5ebe910f990c74228ad435e08170",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/37221621657"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2-0",
      "date": "2026-10-04T17:58:46.000Z",
      "commit": "b3e2eaa6ebda879ca2e79d34e2f810d9e6b747a0",
      "fileid": "https://r2.ropensci.org/80a9439ce5bb437f6e647c9a8307b999df360f88784de080b3da00fb487a7012",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/37221621657"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.2-0",
      "date": "2026-10-04T17:52:47.000Z",
      "commit": "b3e2eaa6ebda879ca2e79d34e2f810d9e6b747a0",
      "fileid": "https://r2.ropensci.org/85fa26c5b70caee91b2245d920652839be6e595b3056519f7491410c2d9d6d4d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/37221621657"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2-0",
      "date": "2026-10-04T17:52:29.000Z",
      "commit": "b3e2eaa6ebda879ca2e79d34e2f810d9e6b747a0",
      "fileid": "https://r2.ropensci.org/659e3ef8ffe6a500bade9af1498f724755db8034da91075e3276ef583fcd3982",
      "status": "success",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/37221621657"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2-0",
      "date": "2026-10-04T17:51:47.000Z",
      "commit": "b3e2eaa6ebda879ca2e79d34e2f810d9e6b747a0",
      "fileid": "https://r2.ropensci.org/d1d203a93514076dc5fbce1921ec86ac323ca857eed064c8eb774049cb9c86fc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/37221621657"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2-0",
      "date": "2026-10-04T17:52:29.000Z",
      "commit": "b3e2eaa6ebda879ca2e79d34e2f810d9e6b747a0",
      "fileid": "https://r2.ropensci.org/5eb1315a177d92dc10b0e05495966cb04b31c1de677039df622f527bf835e956",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/37221621657"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.2-0",
      "date": "2026-10-04T17:51:50.000Z",
      "commit": "b3e2eaa6ebda879ca2e79d34e2f810d9e6b747a0",
      "fileid": "https://r2.ropensci.org/3d83b9601cbbf579f3b0051c11be51a545ee8e73d2f71d0900f53030adf86773",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/j-hai/actions/runs/37221621657"
    }
  ]
}