{
  "_id": "6a1b570b1d7bb097a0a11627",
  "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-05-30 21:26:53 UTC",
    "User": "root"
  },
  "MD5sum": "c9af271af76c1972b82eb37d353a4dec",
  "_user": "xuyiqing",
  "_type": "src",
  "_file": "gsynth_1.4.0.tar.gz",
  "_fileid": "a850d613793c99be802b9bb14b6f5716f6faa3414279298df09c6aad39fb859b",
  "_filesize": 192166,
  "_sha256": "a850d613793c99be802b9bb14b6f5716f6faa3414279298df09c6aad39fb859b",
  "_created": "2026-05-30T21:26:53.000Z",
  "_published": "2026-05-30T21:30:51.184Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78678853368,
      "time": 158,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7311475486"
    },
    {
      "job": 78678853381,
      "time": 195,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7311479078"
    },
    {
      "job": 78678853377,
      "time": 115,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7311470856"
    },
    {
      "job": 78678853372,
      "time": 105,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7311469692"
    },
    {
      "job": 78678677151,
      "time": 181,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7311457946"
    },
    {
      "job": 78678853355,
      "time": 116,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7311470990"
    },
    {
      "job": 78678853387,
      "time": 137,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7311473226"
    },
    {
      "job": 78678853374,
      "time": 98,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7311468875"
    },
    {
      "job": 78678853384,
      "time": 95,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7311468718"
    }
  ],
  "_buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26695285240",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/xuyiqing/gsynth",
  "_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
  },
  "_maintainer": {
    "name": "Yiqing Xu",
    "email": "yiqingxu@stanford.edu",
    "orcid": "0000-0003-2041-6671"
  },
  "_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": 153,
  "_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",
    "description": "Assistant Professor at Stanford PoliSci"
  },
  "_downloads": {
    "count": 2301,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/gsynth"
  },
  "_mentions": 1,
  "_devurl": "https://github.com/xuyiqing/gsynth",
  "_searchresults": 265,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/gsynth.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_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.623066437198394,
  "_indexed": true,
  "_nocasepkg": "gsynth",
  "_universes": [
    "xuyiqing"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.4.0",
      "date": "2026-05-30T21:29:19.000Z",
      "distro": "noble",
      "commit": "f288aa23697fa77791157a254c73eef6a351fbbf",
      "fileid": "820263e7411c65fc99dcde06c338d1221afcdbb7811a2d7c112eb90b133df4c1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26695285240"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.4.0",
      "date": "2026-05-30T21:29:45.000Z",
      "distro": "noble",
      "commit": "f288aa23697fa77791157a254c73eef6a351fbbf",
      "fileid": "32e5630ad382838958d1d90a68cdb35fe1a63edcfc546fc3521e3e926f9f9eb6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26695285240"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.4.0",
      "date": "2026-05-30T21:28:38.000Z",
      "commit": "f288aa23697fa77791157a254c73eef6a351fbbf",
      "fileid": "cbec333626c57515ef84144aaed4197f47cdc0f30e3744a76e7c9a5882c9972f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26695285240"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.4.0",
      "date": "2026-05-30T21:28:33.000Z",
      "commit": "f288aa23697fa77791157a254c73eef6a351fbbf",
      "fileid": "844e0ac2fe96dfc5bb5ec18568f15c8d637ccd846901a9a841d09818899ccd2e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26695285240"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.4.0",
      "date": "2026-05-30T21:29:10.000Z",
      "commit": "f288aa23697fa77791157a254c73eef6a351fbbf",
      "fileid": "14b4a2602d97d959fd919411868a5fb44961d12bd8dfe64b9e6ad1ddb60a5ea6",
      "status": "success",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26695285240"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.4.0",
      "date": "2026-05-30T21:28:47.000Z",
      "commit": "f288aa23697fa77791157a254c73eef6a351fbbf",
      "fileid": "4e61021a747fd7ab44ce47f431161956eaae9a3fe4f96722015ca9e6bf07e6bf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26695285240"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.4.0",
      "date": "2026-05-30T21:28:12.000Z",
      "commit": "f288aa23697fa77791157a254c73eef6a351fbbf",
      "fileid": "564b83d087d41ee8bee744283692e2d27604fac21da9cd61f7581e6a4cfc22e2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26695285240"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.4.0",
      "date": "2026-05-30T21:28:10.000Z",
      "commit": "f288aa23697fa77791157a254c73eef6a351fbbf",
      "fileid": "2fad0848301740e0ca25e4d665988a692d5704ace052c079906c933b0221e3b9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xuyiqing/actions/runs/26695285240"
    }
  ]
}