{
  "_id": "6a4f77cc21b18e15485022f1",
  "Package": "DRDID",
  "Type": "Package",
  "Title": "Doubly Robust Difference-in-Differences Estimators",
  "Version": "1.3.0",
  "Authors@R": "c(person(\"Pedro H. C.\", \"Sant'Anna\", email = \"pedrohcgs@gmail.com\",\nrole = c(\"aut\", \"cre\", \"cph\")),\nperson(\"Jun\", \"Zhao\", email = \"beanzhaojun11@gmail.com\",role = c(\"aut\"))\n)",
  "Description": "Implements the locally efficient doubly robust\ndifference-in-differences (DiD) estimators for the average\ntreatment effect proposed by Sant'Anna and Zhao (2020)\n<doi:10.1016/j.jeconom.2020.06.003>. The estimator combines\ninverse probability weighting and outcome regression estimators\n(also implemented in the package) to form estimators with more\nattractive statistical properties. Two different estimation\nmethods can be used to estimate the nuisance functions.",
  "URL": "https://psantanna.com/DRDID/, https://github.com/pedrohcgs/DRDID",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.2",
  "Date": "2026-06-09",
  "Language": "en-US",
  "BugReports": "https://github.com/pedrohcgs/DRDID/issues",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://pedrohcgs.r-universe.dev",
  "Date/Publication": "2026-06-09 19:46:55 UTC",
  "RemoteUrl": "https://github.com/pedrohcgs/drdid",
  "RemoteRef": "HEAD",
  "RemoteSha": "85807cfbddbd64cc6f3f8ba37f52d07c6c3acc65",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-07-09 10:19:25 UTC",
    "User": "root"
  },
  "Author": "Pedro H. C. Sant'Anna [aut, cre, cph],\nJun Zhao [aut]",
  "Maintainer": "Pedro H. C. Sant'Anna <pedrohcgs@gmail.com>",
  "_user": "pedrohcgs",
  "_type": "src",
  "_file": "DRDID_1.3.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/535f75a312d605494f04df67b3f3b8d005ef924236008edbd383d23709ce875c",
  "_filesize": 697576,
  "_sha256": "535f75a312d605494f04df67b3f3b8d005ef924236008edbd383d23709ce875c",
  "_expires": "2026-10-17T10:28:26.000Z",
  "_created": "2026-07-09T10:19:25.000Z",
  "_published": "2026-07-09T10:28:28.365Z",
  "_jobs": [
    {
      "job": 86095117957,
      "time": 178,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8195852301"
    },
    {
      "job": 86095118003,
      "time": 189,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8195768386"
    },
    {
      "job": 86095117948,
      "time": 178,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8195734398"
    },
    {
      "job": 86095117944,
      "time": 197,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8195771480"
    },
    {
      "job": 86095117949,
      "time": 148,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8195752880"
    },
    {
      "job": 86095117971,
      "time": 268,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8195798410"
    },
    {
      "job": 86095117967,
      "time": 98,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8195734369"
    },
    {
      "job": 86095118023,
      "time": 266,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8195797722"
    },
    {
      "job": 86094340287,
      "time": 211,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8195664136"
    },
    {
      "job": 86095117901,
      "time": 147,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8195752393"
    },
    {
      "job": 86095118000,
      "time": 131,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8195746623"
    },
    {
      "job": 86095117925,
      "time": 125,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8195712460"
    },
    {
      "job": 86095117911,
      "time": 209,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8195744462"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/29010982259",
  "_status": "success",
  "_upstream": "https://github.com/pedrohcgs/drdid",
  "_commit": {
    "id": "85807cfbddbd64cc6f3f8ba37f52d07c6c3acc65",
    "author": "pedrohcgs <pedrohcgs@gmail.com>",
    "committer": "pedrohcgs <pedrohcgs@gmail.com>",
    "message": "CRAN submission record for 1.3.0\n",
    "time": 1781034415
  },
  "_maintainer": {
    "name": "Pedro H. C. SantAnna",
    "email": "pedrohcgs@gmail.com",
    "login": "pedrohcgs",
    "linkedin": "in/pedrohcsantanna",
    "twitter": "@pedrohcgs",
    "description": "",
    "uuid": 4849139
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.12",
      "role": "LinkingTo"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "trust",
      "role": "Imports"
    },
    {
      "package": "BMisc",
      "version": ">= 1.4.1",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.12",
      "role": "Imports"
    },
    {
      "package": "fastglm",
      "version": ">= 0.0.3",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "pedrohcgs",
  "_selfowned": true,
  "_usedby": 8,
  "_updates": [
    {
      "week": "2025-40",
      "n": 20
    },
    {
      "week": "2025-49",
      "n": 2
    },
    {
      "week": "2026-22",
      "n": 1
    },
    {
      "week": "2026-24",
      "n": 6
    }
  ],
  "_tags": [
    {
      "name": "v1.2.3",
      "date": "2025-10-02"
    },
    {
      "name": "v1.3.0",
      "date": "2026-06-09"
    }
  ],
  "_stars": 102,
  "_contributors": [
    {
      "user": "pedrohcgs",
      "count": 185,
      "uuid": 4849139
    },
    {
      "user": "marcelortizv",
      "count": 25,
      "uuid": 47307639
    },
    {
      "user": "bcallaway11",
      "count": 3,
      "uuid": 148795
    },
    {
      "user": "jsr-p",
      "count": 1,
      "uuid": 49307119
    }
  ],
  "_userbio": {
    "uuid": 4849139,
    "type": "user",
    "name": "Pedro H. C. Sant'Anna",
    "followers": 1049
  },
  "_downloads": {
    "count": 11440,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/DRDID"
  },
  "_devurl": "https://github.com/pedrohcgs/drdid",
  "_pkgdown": "https://psantanna.com/DRDID/",
  "_searchresults": 314,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/DRDID.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/pedrohcgs/drdid",
  "_realowner": "pedrohcgs",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2020-05-18"
    },
    {
      "version": "1.0.1",
      "date": "2021-01-07"
    },
    {
      "version": "1.0.3",
      "date": "2021-11-13"
    },
    {
      "version": "1.0.4",
      "date": "2022-07-19"
    },
    {
      "version": "1.0.6",
      "date": "2023-05-18"
    },
    {
      "version": "1.0.7",
      "date": "2024-07-05"
    },
    {
      "version": "1.1.0",
      "date": "2024-09-05"
    },
    {
      "version": "1.2.0",
      "date": "2024-10-07"
    },
    {
      "version": "1.2.2",
      "date": "2025-05-30"
    },
    {
      "version": "1.2.3",
      "date": "2025-12-11"
    },
    {
      "version": "1.3.0",
      "date": "2026-06-10"
    }
  ],
  "_exports": [
    "drdid",
    "drdid_imp_panel",
    "drdid_imp_rc",
    "drdid_imp_rc1",
    "drdid_panel",
    "drdid_rc",
    "drdid_rc1",
    "ipw_did_panel",
    "ipw_did_rc",
    "ipwdid",
    "ordid",
    "reg_did_panel",
    "reg_did_rc",
    "std_ipw_did_panel",
    "std_ipw_did_rc",
    "twfe_did_panel",
    "twfe_did_rc"
  ],
  "_datasets": [
    {
      "name": "nsw",
      "title": "National Supported Work Demonstration dataset",
      "object": "nsw",
      "class": [
        "data.frame"
      ],
      "fields": [
        "treated",
        "age",
        "educ",
        "black",
        "married",
        "nodegree",
        "dwincl",
        "re74",
        "re75",
        "re78",
        "hisp",
        "early_ra",
        "sample",
        "experimental"
      ],
      "rows": 19204,
      "table": true,
      "tojson": true
    },
    {
      "name": "nsw_long",
      "title": "National Supported Work Demonstration dataset, in long format",
      "object": "nsw_long",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "year",
        "treated",
        "age",
        "educ",
        "black",
        "married",
        "nodegree",
        "dwincl",
        "re74",
        "hisp",
        "early_ra",
        "sample",
        "experimental",
        "re"
      ],
      "rows": 38408,
      "table": true,
      "tojson": true
    },
    {
      "name": "sim_rc",
      "title": "Simulated repeated cross-section data",
      "object": "sim_rc",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "post",
        "y",
        "d",
        "x1",
        "x2",
        "x3",
        "x4"
      ],
      "rows": 1000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "drdid",
      "title": "Locally efficient doubly robust DiD estimators for the ATT",
      "topics": [
        "drdid"
      ]
    },
    {
      "page": "drdid_imp_panel",
      "title": "Improved locally efficient doubly robust DiD estimator for the ATT, with panel data",
      "topics": [
        "drdid_imp_panel"
      ]
    },
    {
      "page": "drdid_imp_rc",
      "title": "Improved locally efficient doubly robust DiD estimator for the ATT, with repeated cross-section data",
      "topics": [
        "drdid_imp_rc"
      ]
    },
    {
      "page": "drdid_imp_rc1",
      "title": "Improved doubly robust DiD estimator for the ATT, with repeated cross-section data",
      "topics": [
        "drdid_imp_rc1"
      ]
    },
    {
      "page": "drdid_panel",
      "title": "Locally efficient doubly robust DiD estimator for the ATT, with panel data",
      "topics": [
        "drdid_panel"
      ]
    },
    {
      "page": "drdid_rc",
      "title": "Locally efficient doubly robust DiD estimator for the ATT, with repeated cross-section data",
      "topics": [
        "drdid_rc"
      ]
    },
    {
      "page": "drdid_rc1",
      "title": "Doubly robust DiD estimator for the ATT, with repeated cross-section data",
      "topics": [
        "drdid_rc1"
      ]
    },
    {
      "page": "ipw_did_panel",
      "title": "Inverse probability weighted DiD estimator, with panel data",
      "topics": [
        "ipw_did_panel"
      ]
    },
    {
      "page": "ipw_did_rc",
      "title": "Inverse probability weighted DiD estimator, with repeated cross-section data",
      "topics": [
        "ipw_did_rc"
      ]
    },
    {
      "page": "ipwdid",
      "title": "Inverse probability weighted DiD estimators for the ATT",
      "topics": [
        "ipwdid"
      ]
    },
    {
      "page": "nsw",
      "title": "National Supported Work Demonstration dataset",
      "topics": [
        "nsw"
      ]
    },
    {
      "page": "nsw_long",
      "title": "National Supported Work Demonstration dataset, in long format",
      "topics": [
        "nsw_long"
      ]
    },
    {
      "page": "ordid",
      "title": "Outcome regression DiD estimators for the ATT",
      "topics": [
        "ordid"
      ]
    },
    {
      "page": "reg_did_panel",
      "title": "Outcome regression DiD estimator for the ATT, with panel data",
      "topics": [
        "reg_did_panel"
      ]
    },
    {
      "page": "reg_did_rc",
      "title": "Outcome regression DiD estimator for the ATT, with repeated cross-section data",
      "topics": [
        "reg_did_rc"
      ]
    },
    {
      "page": "sim_rc",
      "title": "Simulated repeated cross-section data",
      "topics": [
        "sim_rc"
      ]
    },
    {
      "page": "std_ipw_did_panel",
      "title": "Standardized inverse probability weighted DiD estimator, with panel data",
      "topics": [
        "std_ipw_did_panel"
      ]
    },
    {
      "page": "std_ipw_did_rc",
      "title": "Standardized inverse probability weighted DiD estimator, with repeated cross-section data",
      "topics": [
        "std_ipw_did_rc"
      ]
    },
    {
      "page": "twfe_did_panel",
      "title": "Two-way fixed effects DiD estimator, with panel data",
      "topics": [
        "twfe_did_panel"
      ]
    },
    {
      "page": "twfe_did_rc",
      "title": "Two-way fixed effects DiD estimator, with repeated cross-section data",
      "topics": [
        "twfe_did_rc"
      ]
    }
  ],
  "_pkglogo": "https://github.com/pedrohcgs/drdid/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/pedrohcgs/drdid/raw/HEAD/README.md",
  "_rundeps": [
    "BH",
    "bigmemory",
    "bigmemory.sri",
    "BMisc",
    "cli",
    "cpp11",
    "data.table",
    "dplyr",
    "fastglm",
    "Formula",
    "generics",
    "glue",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "rlang",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "trust",
    "utf8",
    "uuid",
    "vctrs",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 9.722318336387389,
  "_indexed": true,
  "_nocasepkg": "drdid",
  "_universes": [
    "pedrohcgs"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3.0",
      "date": "2026-07-09T10:27:28.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "85807cfbddbd64cc6f3f8ba37f52d07c6c3acc65",
      "fileid": "https://r2.ropensci.org/05399ef4a1b5551ed25132a28f94b12bc946f40c36834126198998decddc3b72",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/29010982259"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3.0",
      "date": "2026-07-09T10:23:47.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "85807cfbddbd64cc6f3f8ba37f52d07c6c3acc65",
      "fileid": "https://r2.ropensci.org/19b297f9d0964edaaa5778fa4fe9850ea57b853fecdd6576e605127b75f55dd0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/29010982259"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.3.0",
      "date": "2026-07-09T10:22:20.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "85807cfbddbd64cc6f3f8ba37f52d07c6c3acc65",
      "fileid": "https://r2.ropensci.org/f7b9987ab915e9cfe9e0b813fd41da91a84b015eca906e3d18f159782cb12383",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/29010982259"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.3.0",
      "date": "2026-07-09T10:23:56.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "85807cfbddbd64cc6f3f8ba37f52d07c6c3acc65",
      "fileid": "https://r2.ropensci.org/c329a71ed3b1093a6bdffc74c769e764ca780a55db58d556cc4c49c0d3771a81",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/29010982259"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.3.0",
      "date": "2026-07-09T10:23:06.000Z",
      "arch": "aarch64",
      "commit": "85807cfbddbd64cc6f3f8ba37f52d07c6c3acc65",
      "fileid": "https://r2.ropensci.org/ab7636ca1ae776d7df605fd7ea215c375f38539c27fdd1d54f7925b5a01c3976",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/29010982259"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.3.0",
      "date": "2026-07-09T10:24:02.000Z",
      "arch": "x86_64",
      "commit": "85807cfbddbd64cc6f3f8ba37f52d07c6c3acc65",
      "fileid": "https://r2.ropensci.org/2f9f054d1548d298322f3bc35a220d492648e5dfc3f0178d9a12140a4954586a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/29010982259"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.3.0",
      "date": "2026-07-09T10:22:25.000Z",
      "arch": "aarch64",
      "commit": "85807cfbddbd64cc6f3f8ba37f52d07c6c3acc65",
      "fileid": "https://r2.ropensci.org/4462d79c5902a38d8df165b53cfab3e2c069252a294ebf94cbab7ee4e9097cb8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/29010982259"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.3.0",
      "date": "2026-07-09T10:24:18.000Z",
      "arch": "x86_64",
      "commit": "85807cfbddbd64cc6f3f8ba37f52d07c6c3acc65",
      "fileid": "https://r2.ropensci.org/3aa231cbe65bfb3227d4944af977f0412e97a7426e8af85b9647352fffbf1a85",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/29010982259"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.3.0",
      "date": "2026-07-09T10:23:33.000Z",
      "arch": "emscripten",
      "commit": "85807cfbddbd64cc6f3f8ba37f52d07c6c3acc65",
      "fileid": "https://r2.ropensci.org/0d798071b3af78f6cf3011243809f7d98c4dabae136a05754c153a497bb92a11",
      "status": "success",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/29010982259"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-07-09T10:22:22.000Z",
      "arch": "x86_64",
      "commit": "85807cfbddbd64cc6f3f8ba37f52d07c6c3acc65",
      "fileid": "https://r2.ropensci.org/40b9b919388951b192a1375b2b1e06ef0538e2920a4eca07d7f3e4730a87996e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/29010982259"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-07-09T10:20:52.000Z",
      "arch": "x86_64",
      "commit": "85807cfbddbd64cc6f3f8ba37f52d07c6c3acc65",
      "fileid": "https://r2.ropensci.org/20d9bc7eda700bc1dfce5de3fe6eeb68376db1c6f4c6b8cf1612e72964324e15",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/29010982259"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-07-09T10:22:16.000Z",
      "arch": "x86_64",
      "commit": "85807cfbddbd64cc6f3f8ba37f52d07c6c3acc65",
      "fileid": "https://r2.ropensci.org/39bec5f0aa859c16f2c48b9a1c50417aeba94888f58399d64d39ea3c3bbee1ba",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/29010982259"
    }
  ]
}