{
  "_id": "6a1489f0acfb0bcc41d495e4",
  "Package": "DRDID",
  "Type": "Package",
  "Title": "Doubly Robust Difference-in-Differences Estimators",
  "Version": "1.2.3",
  "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": "2025-12-1",
  "Language": "en-US",
  "BugReports": "https://github.com/pedrohcgs/DRDID/issues",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://pedrohcgs.r-universe.dev",
  "Date/Publication": "2026-05-25 14:23:47 UTC",
  "RemoteUrl": "https://github.com/pedrohcgs/drdid",
  "RemoteRef": "HEAD",
  "RemoteSha": "abaab39995c6569a8b2659908456d3563794198a",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-25 17:35:50 UTC",
    "User": "root"
  },
  "Author": "Pedro H. C. Sant'Anna [aut, cre, cph],\nJun Zhao [aut]",
  "Maintainer": "Pedro H. C. Sant'Anna <pedrohcgs@gmail.com>",
  "MD5sum": "f48562b10d60cafdd1dc3cd503e0e7bd",
  "_user": "pedrohcgs",
  "_type": "src",
  "_file": "DRDID_1.2.3.tar.gz",
  "_fileid": "f74495643cdd6bea25c4861b9138752671e1629546ad7b73f2e170df48fb8105",
  "_filesize": 689342,
  "_sha256": "f74495643cdd6bea25c4861b9138752671e1629546ad7b73f2e170df48fb8105",
  "_created": "2026-05-25T17:35:50.000Z",
  "_published": "2026-05-25T17:42:08.870Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77750258407,
      "time": 216,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7202603924"
    },
    {
      "job": 77750258389,
      "time": 187,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7202597465"
    },
    {
      "job": 77750258387,
      "time": 185,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7202596802"
    },
    {
      "job": 77750258392,
      "time": 207,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7202601768"
    },
    {
      "job": 77750258406,
      "time": 165,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7202588245"
    },
    {
      "job": 77750258391,
      "time": 332,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7202620941"
    },
    {
      "job": 77750258428,
      "time": 154,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7202586656"
    },
    {
      "job": 77750258402,
      "time": 309,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7202617314"
    },
    {
      "job": 77749861176,
      "time": 218,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7202558946"
    },
    {
      "job": 77750258362,
      "time": 146,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7202589069"
    },
    {
      "job": 77750258386,
      "time": 144,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7202588885"
    },
    {
      "job": 77750258388,
      "time": 149,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7202589948"
    },
    {
      "job": 77750258379,
      "time": 149,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7202590114"
    }
  ],
  "_buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/26412502251",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/pedrohcgs/drdid",
  "_commit": {
    "id": "abaab39995c6569a8b2659908456d3563794198a",
    "author": "Pedro H. C. Sant'Anna <pedrohcgs@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #18 from bcallaway11/fix-bmisc-deprecated-calls\n\nReplace deprecated BMisc function names in pre_process_drdid.R",
    "time": 1779719027
  },
  "_maintainer": {
    "name": "Pedro H. C. SantAnna",
    "email": "pedrohcgs@gmail.com",
    "login": "pedrohcgs",
    "linkedin": "in/pedrohcsantanna",
    "twitter": "@pedrohcgs",
    "description": "",
    "uuid": 4849139
  },
  "_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-22",
      "n": 1
    },
    {
      "week": "2025-40",
      "n": 20
    },
    {
      "week": "2025-49",
      "n": 2
    },
    {
      "week": "2026-22",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v1.2.3",
      "date": "2025-10-02"
    }
  ],
  "_stars": 98,
  "_contributors": [
    {
      "user": "pedrohcgs",
      "count": 172,
      "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"
  },
  "_downloads": {
    "count": 11232,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/DRDID"
  },
  "_devurl": "https://github.com/pedrohcgs/drdid",
  "_pkgdown": "https://psantanna.com/DRDID/",
  "_searchresults": 209,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_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"
    }
  ],
  "_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",
    "caret",
    "class",
    "cli",
    "clock",
    "codetools",
    "cpp11",
    "data.table",
    "diagram",
    "digest",
    "dplyr",
    "e1071",
    "farver",
    "fastglm",
    "foreach",
    "Formula",
    "future",
    "future.apply",
    "generics",
    "ggplot2",
    "globals",
    "glue",
    "gower",
    "gtable",
    "hardhat",
    "ipred",
    "isoband",
    "iterators",
    "KernSmooth",
    "labeling",
    "lattice",
    "lava",
    "lifecycle",
    "listenv",
    "lubridate",
    "magrittr",
    "MASS",
    "Matrix",
    "ModelMetrics",
    "nlme",
    "nnet",
    "numDeriv",
    "parallelly",
    "pillar",
    "pkgconfig",
    "plyr",
    "pROC",
    "prodlim",
    "progressr",
    "proxy",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "recipes",
    "reshape2",
    "rlang",
    "rpart",
    "S7",
    "scales",
    "shape",
    "sparsevctrs",
    "SQUAREM",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "timeDate",
    "trust",
    "tzdb",
    "utf8",
    "uuid",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 9.52019194868453,
  "_indexed": true,
  "_nocasepkg": "drdid",
  "_universes": [
    "pedrohcgs"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.3",
      "date": "2026-05-25T17:39:15.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "abaab39995c6569a8b2659908456d3563794198a",
      "fileid": "5987f09852658ff09bed631cd2c6f990fed6e2cde4edc89d43e89b2b2105fcc6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/26412502251"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.3",
      "date": "2026-05-25T17:38:43.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "abaab39995c6569a8b2659908456d3563794198a",
      "fileid": "a5d4d1c0dec98a05bde9fa3b160e1da4844c912dce72bcebfb24bac8b56c407b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/26412502251"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.3",
      "date": "2026-05-25T17:38:43.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "abaab39995c6569a8b2659908456d3563794198a",
      "fileid": "51861d3ae42a23a94460a3bd27ec87cf9b2da360d163f32696ff88be86b86045",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/26412502251"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.3",
      "date": "2026-05-25T17:39:03.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "abaab39995c6569a8b2659908456d3563794198a",
      "fileid": "73f8c22ce31c067b171e9a2e1f89292e2fb57b3d8a06132fc514e9b8a77d9793",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/26412502251"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.3",
      "date": "2026-05-25T17:38:12.000Z",
      "arch": "aarch64",
      "commit": "abaab39995c6569a8b2659908456d3563794198a",
      "fileid": "9b8bd6b8ed358d2d9dc15340695c4dd103b357baef9b9b9350b2134f18b5cce3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/26412502251"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.3",
      "date": "2026-05-25T17:40:13.000Z",
      "arch": "x86_64",
      "commit": "abaab39995c6569a8b2659908456d3563794198a",
      "fileid": "1375dc445cc7d455b4cd2e70b5dffe78ab15556a8b660ff8d623961376d9193e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/26412502251"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.3",
      "date": "2026-05-25T17:37:58.000Z",
      "arch": "aarch64",
      "commit": "abaab39995c6569a8b2659908456d3563794198a",
      "fileid": "4cddfb798cc5b9ed88bd273ac07c6c495305fd54479259ca92784255b18278e6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/26412502251"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.3",
      "date": "2026-05-25T17:39:49.000Z",
      "arch": "x86_64",
      "commit": "abaab39995c6569a8b2659908456d3563794198a",
      "fileid": "cf8c6b16092f62b44a0b5e417fa61d8250a6c1675d736810a8a7eeebe62b6c5a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/26412502251"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.3",
      "date": "2026-05-25T17:38:37.000Z",
      "arch": "emscripten",
      "commit": "abaab39995c6569a8b2659908456d3563794198a",
      "fileid": "9fb40c5896bbfd00a5f5ae757a65bf3e863503d2a5fd8e0a5bdb5be9d052993e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/26412502251"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.3",
      "date": "2026-05-25T17:37:35.000Z",
      "arch": "x86_64",
      "commit": "abaab39995c6569a8b2659908456d3563794198a",
      "fileid": "f3d4d742abef38f0d7ac10839e201e6f8aa379a1470d82109d448f3038525419",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/26412502251"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.3",
      "date": "2026-05-25T17:37:42.000Z",
      "arch": "x86_64",
      "commit": "abaab39995c6569a8b2659908456d3563794198a",
      "fileid": "65088370390c6e780801659f55aeff19442113eaabf2083251e46dffd199bce2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/26412502251"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.2.3",
      "date": "2026-05-25T17:37:42.000Z",
      "arch": "x86_64",
      "commit": "abaab39995c6569a8b2659908456d3563794198a",
      "fileid": "55fbcebd771be8f113a206d4a0eb8fdf7cb966e3ba90059c57bdd65849ffd8ba",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pedrohcgs/actions/runs/26412502251"
    }
  ]
}