{
  "_id": "6a10399dacfb0bcc41c9af1b",
  "Package": "HonestDiD",
  "Type": "Package",
  "Title": "Robust Inference in Difference-in-Differences and Event Study\nDesigns",
  "Version": "0.2.8",
  "Authors@R": "c(person(given = \"Ashesh\",\nfamily = \"Rambachan\",\nrole = c(\"aut\", \"cph\", \"cre\"),\nemail = \"ashesh.a.rambachan@gmail.com\"),\nperson(given = \"Jonathan\",\nfamily = \"Roth\",\nrole = c(\"aut\", \"cph\"),\nemail = \"jonathan_roth@brown.edu\"))",
  "Description": "Provides functions to conduct robust inference in\ndifference-in-differences and event study designs by\nimplementing the methods developed in Rambachan & Roth (2023)\n<doi:10.1093/restud/rdad018>, \"A More Credible Approach to\nParallel Trends\" [Previously titled \"An Honest Approach...\"].\nInference is conducted under a weaker version of the parallel\ntrends assumption. Uniformly valid confidence sets are\nconstructed based upon conditional confidence sets,\nfixed-length confidence sets and hybridized confidence sets.",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "License": "MIT + file LICENSE",
  "Config/pak/sysreqs": "cmake libglpk-dev libgmp3-dev make pkg-config\nlibclang-dev",
  "Repository": "https://asheshrambachan.r-universe.dev",
  "Date/Publication": "2026-04-12 02:26:29 UTC",
  "RemoteUrl": "https://github.com/asheshrambachan/honestdid",
  "RemoteRef": "HEAD",
  "RemoteSha": "6813f02ed38f0b63bdca6915604b2eac90491303",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-12 05:31:55 UTC",
    "User": "root"
  },
  "Author": "Ashesh Rambachan [aut, cph, cre],\nJonathan Roth [aut, cph]",
  "Maintainer": "Ashesh Rambachan <ashesh.a.rambachan@gmail.com>",
  "MD5sum": "5af2ccf730049d3460d3418f8ba138bd",
  "_user": "asheshrambachan",
  "_type": "src",
  "_file": "HonestDiD_0.2.8.tar.gz",
  "_fileid": "08bc0d3ecbabb8e26361005fee6872e7ba52c9944b67edf8dfced9d72f94d648",
  "_filesize": 842347,
  "_sha256": "08bc0d3ecbabb8e26361005fee6872e7ba52c9944b67edf8dfced9d72f94d648",
  "_created": "2026-05-12T05:31:55.000Z",
  "_published": "2026-05-22T11:10:21.093Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77367775223,
      "time": 175,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6936443743"
    },
    {
      "job": 77367775113,
      "time": 208,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6936450511"
    },
    {
      "job": 77367775412,
      "time": 165,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6936434152"
    },
    {
      "job": 77367774827,
      "time": 198,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6936439776"
    },
    {
      "job": 77367774698,
      "time": 193,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6936399889"
    },
    {
      "job": 77367774397,
      "time": 136,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7159071427"
    },
    {
      "job": 77367774778,
      "time": 107,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6936427179"
    },
    {
      "job": 77367775410,
      "time": 93,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6936422274"
    },
    {
      "job": 77367774708,
      "time": 107,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6936425852"
    }
  ],
  "_buildurl": "https://github.com/r-universe/asheshrambachan/actions/runs/25715356989",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/asheshrambachan/honestdid",
  "_commit": {
    "id": "6813f02ed38f0b63bdca6915604b2eac90491303",
    "author": "hayaalsh <haya1@mit.edu>",
    "committer": "hayaalsh <haya1@mit.edu>",
    "message": "Update actions/checkout to v4 for Node.js 24 compatibility\n",
    "time": 1775960789
  },
  "_maintainer": {
    "name": "Ashesh Rambachan",
    "email": "ashesh.a.rambachan@gmail.com",
    "login": "asheshrambachan",
    "twitter": "@asheshrambachan",
    "uuid": 29416461
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.6.0",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "foreach",
      "version": ">= 1.4.7",
      "role": "Imports"
    },
    {
      "package": "matrixStats",
      "version": ">= 0.63.0",
      "role": "Imports"
    },
    {
      "package": "CVXR",
      "version": ">= 1.8",
      "role": "Imports"
    },
    {
      "package": "ECOSolveR",
      "role": "Imports"
    },
    {
      "package": "latex2exp",
      "version": ">= 0.4.0",
      "role": "Imports"
    },
    {
      "package": "lpSolveAPI",
      "version": ">= 5.5.2.0-17",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "version": ">= 1.2-17",
      "role": "Imports"
    },
    {
      "package": "pracma",
      "version": ">= 2.2.5",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "version": ">= 0.3.4",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "version": ">= 1.3.4",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 0.7.4",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 2.2.1",
      "role": "Imports"
    },
    {
      "package": "Rglpk",
      "version": ">= 0.6-4",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "version": ">= 1.1-3",
      "role": "Imports"
    },
    {
      "package": "TruncatedNormal",
      "version": ">= 1.0",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "haven",
      "role": "Suggests"
    },
    {
      "package": "lfe",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "asheshrambachan",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2026-11",
      "n": 1
    },
    {
      "week": "2026-14",
      "n": 1
    },
    {
      "week": "2026-15",
      "n": 9
    }
  ],
  "_tags": [
    {
      "name": "v0.2.7",
      "date": "2026-03-31"
    },
    {
      "name": "v0.2.8",
      "date": "2026-04-12"
    }
  ],
  "_topics": [
    "difference-in-differences",
    "event-studies",
    "robust-inference"
  ],
  "_stars": 239,
  "_contributors": [
    {
      "user": "mcaceresb",
      "count": 59,
      "uuid": 4219197
    },
    {
      "user": "asheshrambachan",
      "count": 31,
      "uuid": 29416461
    },
    {
      "user": "jonathandroth",
      "count": 23,
      "uuid": 20728724
    },
    {
      "user": "hayaalsh",
      "count": 10,
      "uuid": 22026004
    },
    {
      "user": "cbrell",
      "count": 1,
      "uuid": 7441244
    }
  ],
  "_userbio": {
    "uuid": 29416461,
    "type": "user",
    "name": "Ashesh Rambachan",
    "description": "Economics + ML"
  },
  "_downloads": {
    "count": 17994,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/HonestDiD"
  },
  "_devurl": "https://github.com/asheshrambachan/honestdid",
  "_searchresults": 293,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/HonestDiD.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/asheshrambachan/honestdid",
  "_realowner": "asheshrambachan",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2.6",
      "date": "2024-07-14"
    },
    {
      "version": "0.2.7",
      "date": "2026-04-01"
    },
    {
      "version": "0.2.8",
      "date": "2026-04-12"
    }
  ],
  "_exports": [
    "basisVector",
    "computeConditionalCS_DeltaRM",
    "computeConditionalCS_DeltaRMB",
    "computeConditionalCS_DeltaRMM",
    "computeConditionalCS_DeltaSD",
    "computeConditionalCS_DeltaSDB",
    "computeConditionalCS_DeltaSDM",
    "computeConditionalCS_DeltaSDRM",
    "computeConditionalCS_DeltaSDRMB",
    "computeConditionalCS_DeltaSDRMM",
    "constructOriginalCS",
    "createEventStudyPlot",
    "createSensitivityPlot",
    "createSensitivityPlot_relativeMagnitudes",
    "createSensitivityResults",
    "createSensitivityResults_relativeMagnitudes",
    "DeltaSD_lowerBound_Mpre",
    "DeltaSD_upperBound_Mpre",
    "findOptimalFLCI"
  ],
  "_datasets": [
    {
      "name": "BCdata_EventStudy",
      "title": "Event study estimates from baseline event study specification on profits in Benzarti & Carloni (2019). See discussion in Section 6.1 of Rambachan & Roth (2021).",
      "object": "BCdata_EventStudy",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "LWdata_EventStudy",
      "title": "Event study estimates from baseline female specification on employment in Lovenheim & Willen (2019). See discussion in Section 6.2 of Rambachan & Roth (2021).",
      "object": "LWdata_EventStudy",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "basisVector",
      "title": "Creates a standard basis vector.",
      "topics": [
        "basisVector"
      ]
    },
    {
      "page": "BCdata_EventStudy",
      "title": "Event study estimates from baseline event study specification on profits in Benzarti & Carloni (2019). See discussion in Section 6.1 of Rambachan & Roth (2021).",
      "topics": [
        "BCdata_EventStudy"
      ]
    },
    {
      "page": "computeConditionalCS_DeltaRM",
      "title": "Computes conditional and hybridized confidence set for Delta = Delta^{RM}(Mbar).",
      "topics": [
        "computeConditionalCS_DeltaRM"
      ]
    },
    {
      "page": "computeConditionalCS_DeltaRMB",
      "title": "Computes conditional and hybridized confidence set for Delta = Delta^{RMB}(Mbar).",
      "topics": [
        "computeConditionalCS_DeltaRMB"
      ]
    },
    {
      "page": "computeConditionalCS_DeltaRMM",
      "title": "Computes conditional and hybridized confidence set for Delta = Delta^{RMM}(Mbar).",
      "topics": [
        "computeConditionalCS_DeltaRMM"
      ]
    },
    {
      "page": "computeConditionalCS_DeltaSD",
      "title": "Computes conditional and hybridized confidence set for Delta = Delta^{SD}(M).",
      "topics": [
        "computeConditionalCS_DeltaSD"
      ]
    },
    {
      "page": "computeConditionalCS_DeltaSDB",
      "title": "Computes conditional and hybridized confidence set for Delta = Delta^{SDB}(M).",
      "topics": [
        "computeConditionalCS_DeltaSDB"
      ]
    },
    {
      "page": "computeConditionalCS_DeltaSDM",
      "title": "Computes conditional and hybridized confidence set for Delta = Delta^{SDM}(M).",
      "topics": [
        "computeConditionalCS_DeltaSDM"
      ]
    },
    {
      "page": "computeConditionalCS_DeltaSDRM",
      "title": "Computes conditional and hybridized confidence set for Delta = Delta^{SDRM}(Mbar).",
      "topics": [
        "computeConditionalCS_DeltaSDRM"
      ]
    },
    {
      "page": "computeConditionalCS_DeltaSDRMB",
      "title": "Computes conditional and hybridized confidence set for Delta = Delta^{SDRMB}(Mbar).",
      "topics": [
        "computeConditionalCS_DeltaSDRMB"
      ]
    },
    {
      "page": "computeConditionalCS_DeltaSDRMM",
      "title": "Computes conditional and hybridized confidence set for Delta = Delta^{SDRMM}(Mbar).",
      "topics": [
        "computeConditionalCS_DeltaSDRMM"
      ]
    },
    {
      "page": "constructOriginalCS",
      "title": "Constructs original confidence interval for parameter of interest, theta = l_vec'tau.",
      "topics": [
        "constructOriginalCS"
      ]
    },
    {
      "page": "createEventStudyPlot",
      "title": "Constructs event study plot",
      "topics": [
        "createEventStudyPlot"
      ]
    },
    {
      "page": "createSensitivityPlot",
      "title": "Constructs sensitivity plot for Delta = Delta^{SD}(M), Delta^{SDB}(M) and Delta^{SDM}(M)",
      "topics": [
        "createSensitivityPlot"
      ]
    },
    {
      "page": "createSensitivityPlot_relativeMagnitudes",
      "title": "Constructs sensitivity plot for Delta = Delta^{RM}(Mbar), Delta^{SDRM}{Mbar} and their variants that incorporate additional shape or sign restrictions.",
      "topics": [
        "createSensitivityPlot_relativeMagnitudes"
      ]
    },
    {
      "page": "createSensitivityResults",
      "title": "Constructs robust confidence intervals for Delta = Delta^{SD}(M), Delta^{SDB}(M) and Delta^{SDM}(M) for vector of possible M values.",
      "topics": [
        "createSensitivityResults"
      ]
    },
    {
      "page": "createSensitivityResults_relativeMagnitudes",
      "title": "Constructs robust confidence intervals for Delta = Delta^{RM}(Mbar), Delta^{SDRM}(Mbar) and their variants that incorporate shape or sign restrictions for a vector of possible Mbar values.",
      "topics": [
        "createSensitivityResults_relativeMagnitudes"
      ]
    },
    {
      "page": "DeltaSD_lowerBound_Mpre",
      "title": "Construct lower bound for M for Delta = Delta^{SD}(M) based on observed pre-period coefficients.",
      "topics": [
        "DeltaSD_lowerBound_Mpre"
      ]
    },
    {
      "page": "DeltaSD_upperBound_Mpre",
      "title": "Construct upper bound for M for Delta = Delta^{SD}(M) based on observed pre-period coefficients.",
      "topics": [
        "DeltaSD_upperBound_Mpre"
      ]
    },
    {
      "page": "findOptimalFLCI",
      "title": "Constructs optimal fixed length confidence interval for Delta = Delta^{SD}(M).",
      "topics": [
        "findOptimalFLCI"
      ]
    },
    {
      "page": "LWdata_EventStudy",
      "title": "Event study estimates from baseline female specification on employment in Lovenheim & Willen (2019). See discussion in Section 6.2 of Rambachan & Roth (2021).",
      "topics": [
        "LWdata_EventStudy"
      ]
    }
  ],
  "_readme": "https://github.com/asheshrambachan/honestdid/raw/HEAD/README.md",
  "_rundeps": [
    "alabama",
    "backports",
    "checkmate",
    "clarabel",
    "cli",
    "codetools",
    "cpp11",
    "CVXR",
    "dplyr",
    "ECOSolveR",
    "farver",
    "foreach",
    "generics",
    "ggplot2",
    "glue",
    "gmp",
    "gtable",
    "highs",
    "isoband",
    "iterators",
    "labeling",
    "latex2exp",
    "lattice",
    "lifecycle",
    "lpSolveAPI",
    "magrittr",
    "Matrix",
    "matrixStats",
    "mvtnorm",
    "nleqslv",
    "numDeriv",
    "osqp",
    "pillar",
    "pkgconfig",
    "pracma",
    "purrr",
    "qrng",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rglpk",
    "rlang",
    "S7",
    "scales",
    "scs",
    "slam",
    "spacefillr",
    "tibble",
    "tidyselect",
    "TruncatedNormal",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_score": 9.355665742548725,
  "_indexed": true,
  "_nocasepkg": "honestdid",
  "_universes": [
    "asheshrambachan"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.8",
      "date": "2026-05-12T05:34:47.000Z",
      "distro": "noble",
      "commit": "6813f02ed38f0b63bdca6915604b2eac90491303",
      "fileid": "139ad06c99933009599932f9549038170a0c97910fe24f78844c073107d6b347",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/asheshrambachan/actions/runs/25715356989"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.8",
      "date": "2026-05-12T05:35:15.000Z",
      "distro": "noble",
      "commit": "6813f02ed38f0b63bdca6915604b2eac90491303",
      "fileid": "b3401e84ed40b2cc6b21edc41bef8dc1634ba9759e2860471ebc907e15485637",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/asheshrambachan/actions/runs/25715356989"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.8",
      "date": "2026-05-12T05:34:19.000Z",
      "commit": "6813f02ed38f0b63bdca6915604b2eac90491303",
      "fileid": "66ac616de59df6105e2d8a7390d43719f6e244264b17f3774c577ac5023bd762",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/asheshrambachan/actions/runs/25715356989"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.8",
      "date": "2026-05-12T05:34:28.000Z",
      "commit": "6813f02ed38f0b63bdca6915604b2eac90491303",
      "fileid": "6213e50172fc90dfebaf7fd46565df2ec5c71974fd74f82024bf93a633ce76bd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/asheshrambachan/actions/runs/25715356989"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.8",
      "date": "2026-05-12T05:33:27.000Z",
      "commit": "6813f02ed38f0b63bdca6915604b2eac90491303",
      "fileid": "437ff333b7d23289a59eefb609b36badddfd0b509ed7b363653955a78c9991b8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/asheshrambachan/actions/runs/25715356989"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.8",
      "date": "2026-05-12T05:33:14.000Z",
      "commit": "6813f02ed38f0b63bdca6915604b2eac90491303",
      "fileid": "78fe45dab83495a3adff1276d1993ac5d55eb6ad90a0edc1d267d08e5f27df3e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/asheshrambachan/actions/runs/25715356989"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.8",
      "date": "2026-05-12T05:33:31.000Z",
      "commit": "6813f02ed38f0b63bdca6915604b2eac90491303",
      "fileid": "a07cda8f68e42cb1c5712bb9a1aa060aa170706554b1990f49c948392887b59e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/asheshrambachan/actions/runs/25715356989"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.8",
      "date": "2026-05-22T11:09:55.000Z",
      "commit": "6813f02ed38f0b63bdca6915604b2eac90491303",
      "fileid": "13cd0ad01e86dc1f95b140bb60940c3c2952cd094a55f47e5f4da8d63623abd1",
      "status": "success",
      "buildurl": "https://github.com/r-universe/asheshrambachan/actions/runs/25715356989"
    }
  ]
}