{
  "_id": "6adb0c83c9cc1e56bbac54e6",
  "Package": "gsynth",
  "Type": "Package",
  "Title": "Generalized Synthetic Control Method",
  "Version": "1.4.0",
  "Date": "2026-03-27",
  "Authors@R": "c(person(\"Yiqing\", \"Xu\", ,\"yiqingxu@stanford.edu\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0003-2041-6671\")),\nperson(\"Licheng\", \"Liu\", ,\"lichengl@umich.edu\", role = c(\"aut\")),\nperson(\"Ziyi\", \"Liu\", ,\"zyliu2023@berkeley.edu\", role = c(\"aut\")),\nperson(\"Shiyun\", \"Hu\", ,\"hushiyun@pku.edu.cn\", role = c(\"aut\")))",
  "Maintainer": "Yiqing Xu <yiqingxu@stanford.edu>",
  "Author": "Yiqing Xu [aut, cre] (<https://orcid.org/0000-0003-2041-6671>),\nLicheng Liu [aut], Ziyi Liu [aut], Shiyun Hu [aut]",
  "Description": "Conducts causal inference with interactive fixed-effect\nmodels. It imputes counterfactuals for each treated unit using\ncontrol group information based on a linear interactive fixed\neffects model that incorporates unit-specific intercepts\ninteracted with time-varying coefficients. This method\ngeneralizes the synthetic control method to the case of\nmultiple treated units and variable treatment periods, and\nimproves efficiency and interpretability. See Xu (2017)\n<doi:10.1017/pan.2016.2> for details.",
  "URL": "https://yiqingxu.org/packages/gsynth/,\nhttps://github.com/xuyiqing/gsynth",
  "BugReports": "https://github.com/xuyiqing/gsynth/issues",
  "NeedsCompilation": "no",
  "Encoding": "UTF-8",
  "License": "MIT + file LICENSE",
  "LazyData": "true",
  "Config/testthat/edition": "3",
  "RoxygenNote": "7.3.2",
  "Config/pak/sysreqs": "libicu-dev libssl-dev",
  "Repository": "https://xuyiqing.r-universe.dev",
  "Date/Publication": "2026-03-27 20:17:30 UTC",
  "RemoteUrl": "https://github.com/xuyiqing/gsynth",
  "RemoteRef": "HEAD",
  "RemoteSha": "f288aa23697fa77791157a254c73eef6a351fbbf",
  "Packaged": {
    "Date": "2026-10-23 07:18:26 UTC",
    "User": "root"
  },
  "_user": "xuyiqing",
  "_type": "src",
  "_file": "gsynth_1.4.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/b922098c53f6357322679b03329de4780b5ec6fd2c50f29155b99d7008c5a57a",
  "_filesize": 192490,
  "_sha256": "b922098c53f6357322679b03329de4780b5ec6fd2c50f29155b99d7008c5a57a",
  "_expires": "2027-01-31T07:28:01.000Z",
  "_created": "2026-10-23T07:18:26.000Z",
  "_published": "2026-10-23T07:28:02.995Z",
  "_upstream": "https://github.com/xuyiqing/gsynth",
  "_status": "success",
  "_maintainer": {
    "name": "Yiqing Xu",
    "email": "yiqingxu@stanford.edu",
    "orcid": "0000-0003-2041-6671"
  },
  "_jobs": [
    {
      "job": 120292347232,
      "time": 127,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12485641329"
    },
    {
      "job": 120292347301,
      "time": 140,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12485357246"
    },
    {
      "job": 120292347327,
      "time": 175,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12484664995"
    },
    {
      "job": 120292347297,
      "time": 112,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12484894369"
    },
    {
      "job": 120291259340,
      "time": 211,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12484937799"
    },
    {
      "job": 120292347207,
      "time": 106,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12484569468"
    },
    {
      "job": 120292348069,
      "time": 88,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12484864342"
    },
    {
      "job": 120292347284,
      "time": 87,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12485461690"
    },
    {
      "job": 120292347282,
      "time": 89,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12485695686"
    }
  ],
  "_buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39916516339",
  "_commit": {
    "id": "f288aa23697fa77791157a254c73eef6a351fbbf",
    "author": "Yiqing Xu <7664920+xuyiqing@users.noreply.github.com>",
    "committer": "Yiqing Xu <7664920+xuyiqing@users.noreply.github.com>",
    "message": "Prepare v1.4.0 for CRAN: add citation, DOI, mark release date\n\n- Add \"How to Cite\" section with Xu (2017) Political Analysis reference\n- Add DOI (doi:10.1017/pan.2016.2) to DESCRIPTION\n- Mark v1.4.0 as CRAN release (2026-03-27) in changelog\n- Update package date to 2026-03-27\n\nCo-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>\n",
    "time": 1774642650
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "ggplot2",
      "version": ">= 2.1.0",
      "role": "Imports"
    },
    {
      "package": "fect",
      "version": ">= 2.0.0",
      "role": "Imports"
    },
    {
      "package": "panelView",
      "version": ">= 1.1.17",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "xuyiqing",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-49",
      "n": 1
    },
    {
      "week": "2026-12",
      "n": 2
    },
    {
      "week": "2026-13",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 155,
  "_contributors": [
    {
      "user": "xuyiqing",
      "count": 43,
      "uuid": 7664920
    },
    {
      "user": "shiyun-hu",
      "count": 11,
      "uuid": 62308700
    },
    {
      "user": "beniaminogreen",
      "count": 1,
      "uuid": 50080644
    },
    {
      "user": "tianzhuqin",
      "count": 1,
      "uuid": 43746568
    }
  ],
  "_userbio": {
    "uuid": 7664920,
    "type": "user",
    "name": "Yiqing Xu",
    "followers": 633,
    "description": "Assistant Professor at Stanford PoliSci"
  },
  "_downloads": {
    "count": 1559,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/gsynth"
  },
  "_mentions": 1,
  "_devurl": "https://github.com/xuyiqing/gsynth",
  "_searchresults": 312,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/gsynth.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/xuyiqing/gsynth",
  "_realowner": "xuyiqing",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.2",
      "date": "2017-03-12"
    },
    {
      "version": "1.0.3",
      "date": "2017-03-12"
    },
    {
      "version": "1.0.5",
      "date": "2017-10-12"
    },
    {
      "version": "1.0.6",
      "date": "2017-10-16"
    },
    {
      "version": "1.0.9",
      "date": "2018-08-24"
    },
    {
      "version": "1.2.1",
      "date": "2021-08-06"
    },
    {
      "version": "1.3.1",
      "date": "2025-12-11"
    },
    {
      "version": "1.4.0",
      "date": "2026-03-27"
    }
  ],
  "_exports": [
    "effect",
    "gsynth"
  ],
  "_datasets": [
    {
      "name": "simdata",
      "title": "simdata",
      "object": "gsynth",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "time",
        "Y",
        "D",
        "X1",
        "X2",
        "eff",
        "error",
        "mu",
        "alpha",
        "xi",
        "F1",
        "L1",
        "F2",
        "L2"
      ],
      "rows": 1500,
      "table": true,
      "tojson": true
    },
    {
      "name": "turnout",
      "title": "turnout",
      "object": "gsynth",
      "class": [
        "data.frame"
      ],
      "fields": [
        "abb",
        "year",
        "turnout",
        "policy_edr",
        "policy_mail_in",
        "policy_motor"
      ],
      "rows": 1128,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "effect",
      "title": "Cumulative or Sub-group Treatment Effects",
      "topics": [
        "effect"
      ]
    },
    {
      "page": "gsynth",
      "title": "Generalized Synthetic Control Method",
      "topics": [
        "gsynth"
      ]
    },
    {
      "page": "plot.gsynth",
      "title": "Plotting",
      "topics": [
        "plot.gsynth"
      ]
    },
    {
      "page": "print.gsynth",
      "title": "Print Results",
      "topics": [
        "print.gsynth"
      ]
    },
    {
      "page": "simdata",
      "title": "simdata",
      "topics": [
        "simdata"
      ]
    },
    {
      "page": "turnout",
      "title": "turnout",
      "topics": [
        "turnout"
      ]
    }
  ],
  "_readme": "https://github.com/xuyiqing/gsynth/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "cli",
    "codetools",
    "cpp11",
    "crayon",
    "digest",
    "doFuture",
    "doParallel",
    "doRNG",
    "dplyr",
    "dreamerr",
    "farver",
    "fect",
    "fixest",
    "forcats",
    "foreach",
    "Formula",
    "future",
    "future.apply",
    "generics",
    "GGally",
    "ggplot2",
    "ggstats",
    "globals",
    "glue",
    "gridExtra",
    "gtable",
    "hms",
    "isoband",
    "iterators",
    "labeling",
    "lattice",
    "lifecycle",
    "listenv",
    "magrittr",
    "MASS",
    "mvtnorm",
    "nlme",
    "numDeriv",
    "panelView",
    "parallelly",
    "patchwork",
    "pillar",
    "pkgconfig",
    "plyr",
    "prettyunits",
    "progress",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "reshape2",
    "rlang",
    "rngtools",
    "S7",
    "sandwich",
    "scales",
    "stringi",
    "stringmagic",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "zoo"
  ],
  "_score": 7.53054492115292,
  "_indexed": true,
  "_nocasepkg": "gsynth",
  "_universes": [
    "xuyiqing"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.4.0",
      "date": "2026-10-23T07:20:19.000Z",
      "distro": "resolute",
      "commit": "f288aa23697fa77791157a254c73eef6a351fbbf",
      "fileid": "https://r2.ropensci.org/69dba1731a0d9d182cd2951d4adb40cc0bb2ea8fd389bbda63b31ed8ceff4c8b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39916516339"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.4.0",
      "date": "2026-10-23T07:20:29.000Z",
      "distro": "resolute",
      "commit": "f288aa23697fa77791157a254c73eef6a351fbbf",
      "fileid": "https://r2.ropensci.org/29d3d749b2cebcb101930fbe7d2fbe31e6a2ffe9ed8df0b2068744f0beef9401",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39916516339"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.4.0",
      "date": "2026-10-23T07:21:00.000Z",
      "commit": "f288aa23697fa77791157a254c73eef6a351fbbf",
      "fileid": "https://r2.ropensci.org/c4987c1693a1f757ab8ae2d6a85c3b384e7cedda52ffbefe97e55d60ca02df3b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39916516339"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.4.0",
      "date": "2026-10-23T07:19:59.000Z",
      "commit": "f288aa23697fa77791157a254c73eef6a351fbbf",
      "fileid": "https://r2.ropensci.org/62ef3f1abdda9e1b2e57025439ffdc6260c09e187a1b20dce49ab100f7c8a75a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39916516339"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.4.0",
      "date": "2026-10-23T07:20:27.000Z",
      "commit": "f288aa23697fa77791157a254c73eef6a351fbbf",
      "fileid": "https://r2.ropensci.org/dcdd9d37bd4ab910d16b7dec0cfe9cede503224bee94af58907dd0b02ab3e8bd",
      "status": "success",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39916516339"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.4.0",
      "date": "2026-10-23T07:19:29.000Z",
      "commit": "f288aa23697fa77791157a254c73eef6a351fbbf",
      "fileid": "https://r2.ropensci.org/833d785673135f7911dc83959d29f08339f8e12fb27df82ab2e8475be7af08d3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39916516339"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.4.0",
      "date": "2026-10-23T07:19:33.000Z",
      "commit": "f288aa23697fa77791157a254c73eef6a351fbbf",
      "fileid": "https://r2.ropensci.org/010ae2451c2e4b9d3b58317f48f18104cc8c9c638cef7a8b641cd64f82a22104",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39916516339"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.4.0",
      "date": "2026-10-23T07:19:33.000Z",
      "commit": "f288aa23697fa77791157a254c73eef6a351fbbf",
      "fileid": "https://r2.ropensci.org/a2d3a2a92c6c4880db9d1a880bdc7a9dc9d44ebb4b7fe39fb7ec5da7559a68ce",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/39916516339"
    }
  ]
}