{
  "_id": "6aa7b5ea089bafb098cf45fe",
  "Package": "badcontrols",
  "Title": "Difference-in-Differences with Bad Controls",
  "Version": "1.0.0",
  "Authors@R": "c(\nperson(\"Carolina\", \"Caetano\", role = \"aut\",\nemail = \"ccaetano@uga.edu\"),\nperson(\"Brantly\", \"Callaway\", role = \"aut\",\nemail = \"brantly.callaway@uga.edu\"),\nperson(\"Stroud\", \"Payne\", role = \"aut\",\nemail = \"stroud.payne@vanderbilt.edu\"),\nperson(\"Hugo\", \"Sant'Anna\", role = c(\"aut\", \"cre\"),\nemail = \"hsantanna@uab.edu\")\n)",
  "Description": "Implements methods for difference-in-differences with bad\ncontrols, i.e., time-varying covariates that are affected by\nthe treatment.  Provides imputation, doubly robust, and machine\nlearning estimators that are based on Caetano, Callaway, Payne,\nand Sant'Anna (2026) <doi:10.48550/arXiv.2608.03881>.",
  "URL": "https://github.com/hugosantanna/badcontrols",
  "BugReports": "https://github.com/hugosantanna/badcontrols/issues",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "VignetteBuilder": "quarto",
  "Config/testthat/edition": "3",
  "Config/roxygen2/version": "8.1.0",
  "Repository": "https://hugosantanna.r-universe.dev",
  "Date/Publication": "2026-09-03 16:53:15 UTC",
  "RemoteUrl": "https://github.com/hugosantanna/badcontrols",
  "RemoteRef": "HEAD",
  "RemoteSha": "651ccc925776125bb9233d76867c862107ea0ba5",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-09-14 08:26:30 UTC",
    "User": "root"
  },
  "Author": "Carolina Caetano [aut],\nBrantly Callaway [aut],\nStroud Payne [aut],\nHugo Sant'Anna [aut, cre]",
  "Maintainer": "Hugo Sant'Anna <hsantanna@uab.edu>",
  "_user": "hugosantanna",
  "_type": "src",
  "_file": "badcontrols_1.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/67707233fc86f0b9d34a7fe66f91d1f837e57c91481906ca0fa0127754aec0e8",
  "_filesize": 637466,
  "_sha256": "67707233fc86f0b9d34a7fe66f91d1f837e57c91481906ca0fa0127754aec0e8",
  "_expires": "2026-12-23T08:52:57.000Z",
  "_created": "2026-09-14T08:26:30.000Z",
  "_published": "2026-09-14T08:52:58.703Z",
  "_jobs": [
    {
      "job": 103907849683,
      "time": 183,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10338308928"
    },
    {
      "job": 103907849706,
      "time": 195,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10338818346"
    },
    {
      "job": 103907849703,
      "time": 264,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10340275667"
    },
    {
      "job": 103907849760,
      "time": 183,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10339581450"
    },
    {
      "job": 103906915989,
      "time": 206,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10338532930"
    },
    {
      "job": 103907849764,
      "time": 134,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10339097161"
    },
    {
      "job": 103907849768,
      "time": 161,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10338687728"
    },
    {
      "job": 103907849877,
      "time": 165,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10338139323"
    },
    {
      "job": 103907849744,
      "time": 163,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10338997656"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/hugosantanna/actions/runs/34822437183",
  "_status": "success",
  "_upstream": "https://github.com/hugosantanna/badcontrols",
  "_commit": {
    "id": "651ccc925776125bb9233d76867c862107ea0ba5",
    "author": "Brantly Callaway <brantly.callaway@uga.edu>",
    "committer": "Brantly Callaway <brantly.callaway@uga.edu>",
    "message": "Add cran-comments.md for the CRAN submission\n\nMatches the structure used in BMisc/qte/ptetools's own cran-comments.md:\ntest environments (local --as-cran + GitHub Actions, all 5 platforms),\nR CMD check results, downstream dependency status, and a summary of the\nrelease. Also add it to .Rbuildignore, matching the same convention in\nthose packages.\n\nCo-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>\n",
    "time": 1788454395
  },
  "_maintainer": {
    "name": "Hugo SantAnna",
    "email": "hsantanna@uab.edu"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "ptetools",
      "version": ">= 1.0.1",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "grf",
      "version": ">= 2.0.0",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "quarto",
      "role": "Suggests"
    }
  ],
  "_owner": "hugosantanna",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-10",
      "n": 11
    },
    {
      "week": "2026-30",
      "n": 3
    },
    {
      "week": "2026-31",
      "n": 11
    },
    {
      "week": "2026-32",
      "n": 6
    },
    {
      "week": "2026-34",
      "n": 17
    },
    {
      "week": "2026-35",
      "n": 6
    },
    {
      "week": "2026-36",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "bcallaway11",
      "count": 45,
      "uuid": 148795
    },
    {
      "user": "hugosantanna",
      "count": 23,
      "uuid": 47804685
    }
  ],
  "_userbio": {
    "uuid": 47804685,
    "type": "user",
    "name": "Hugo Sant'Anna",
    "followers": 78,
    "description": "Assistant Professor of Economics @ University of Alabama at Birmingham 🐲"
  },
  "_downloads": {
    "count": 8,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/badcontrols"
  },
  "_devurl": "https://github.com/hugosantanna/badcontrols",
  "_searchresults": 10,
  "_quarto": true,
  "_topics": [
    "quarto"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/badcontrols.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/hugosantanna/badcontrols",
  "_realowner": "hugosantanna",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.1",
      "date": "2026-09-12"
    }
  ],
  "_exports": [
    "didbc",
    "dr_ml_attgt",
    "simulate_bad_controls"
  ],
  "_datasets": [
    {
      "name": "nlsy_job_displacement",
      "title": "NLSY79 Job Displacement Application Data",
      "object": "nlsy_job_displacement",
      "file": "nlsy_job_displacement.rda",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "id",
        "year",
        "log_earnings",
        "occ_score",
        "group",
        "race",
        "female",
        "educ_max_grade"
      ],
      "rows": 19386,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "didbc",
      "title": "Estimate ATT(g,t) with Bad Controls",
      "topics": [
        "didbc"
      ]
    },
    {
      "page": "dr_ml_attgt",
      "title": "Doubly Robust Estimator for Bad Controls",
      "topics": [
        "dr_ml_attgt"
      ]
    },
    {
      "page": "nlsy_job_displacement",
      "title": "NLSY79 Job Displacement Application Data",
      "topics": [
        "nlsy_job_displacement"
      ]
    },
    {
      "page": "simulate_bad_controls",
      "title": "Simulate Panel Data with Bad Controls",
      "topics": [
        "simulate_bad_controls"
      ]
    }
  ],
  "_readme": "https://github.com/hugosantanna/badcontrols/raw/HEAD/README.md",
  "_rundeps": [
    "BH",
    "bigmemory",
    "bigmemory.sri",
    "BMisc",
    "cli",
    "cpp11",
    "data.table",
    "dplyr",
    "DRDID",
    "farver",
    "fastglm",
    "Formula",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "pbapply",
    "pillar",
    "pkgconfig",
    "ptetools",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "rlang",
    "S7",
    "scales",
    "splines2",
    "tibble",
    "tidyselect",
    "trust",
    "utf8",
    "uuid",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "bad-controls-coding.qmd",
      "filename": "bad-controls-coding.html",
      "title": "Difference-in-Differences with Bad Controls: A Coding Example",
      "engine": "quarto::html",
      "headings": [
        "NLSY data",
        "Question 1: Is occupation score a bad control?",
        "Estimating the effect of displacement on earnings",
        "Other estimators"
      ],
      "created": "2026-08-07 22:44:20",
      "modified": "2026-08-30 16:00:06",
      "commits": 6
    },
    {
      "source": "bad-controls-conceptual.qmd",
      "filename": "bad-controls-conceptual.html",
      "title": "Difference-in-Differences with Bad Controls: A Conceptual Overview",
      "engine": "quarto::html",
      "headings": [
        "Motivation",
        "Alternative approaches",
        "New Approach 1: Condition on the pre-treatment bad control",
        "New Approach 2: Covariate unconfoundedness for the bad control",
        "Conceptual side-discussion:",
        "Conclusion",
        "References"
      ],
      "created": "2026-08-07 22:44:20",
      "modified": "2026-08-24 12:21:36",
      "commits": 6
    }
  ],
  "_score": 4.845098040014257,
  "_indexed": true,
  "_nocasepkg": "badcontrols",
  "_universes": [
    "hugosantanna"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-09-14T08:29:02.000Z",
      "distro": "resolute",
      "commit": "651ccc925776125bb9233d76867c862107ea0ba5",
      "fileid": "https://r2.ropensci.org/d1d6ab8d4ad9952c0938ff96f22f77f69b19406f86bffc98b45fc69adb674df3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hugosantanna/actions/runs/34822437183"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-09-14T08:29:10.000Z",
      "distro": "resolute",
      "commit": "651ccc925776125bb9233d76867c862107ea0ba5",
      "fileid": "https://r2.ropensci.org/151700293849388294ab30746b4cc776c8aa1493ad2a007f15fff55107755c2d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hugosantanna/actions/runs/34822437183"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-09-14T08:51:15.000Z",
      "commit": "651ccc925776125bb9233d76867c862107ea0ba5",
      "fileid": "https://r2.ropensci.org/bc79d056c43a8823d90e8c3eb8d7eb8016fa9df764e6a89e37fe216af0d0f668",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hugosantanna/actions/runs/34822437183"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-09-14T08:50:25.000Z",
      "commit": "651ccc925776125bb9233d76867c862107ea0ba5",
      "fileid": "https://r2.ropensci.org/261627bc4c15151f04911738b3a318c745c4c3490427a983c7e032ee5ca59b68",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hugosantanna/actions/runs/34822437183"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-09-14T08:29:02.000Z",
      "commit": "651ccc925776125bb9233d76867c862107ea0ba5",
      "fileid": "https://r2.ropensci.org/44adb4b4a5becf9e0f6f9873253d8f5aec2d03560f707c0bbc58e82473bb2831",
      "status": "success",
      "buildurl": "https://github.com/r-universe/hugosantanna/actions/runs/34822437183"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-09-14T08:28:15.000Z",
      "commit": "651ccc925776125bb9233d76867c862107ea0ba5",
      "fileid": "https://r2.ropensci.org/e5fc1dd3db6cc315e7b08baac0a09b1dcb792b82b733452ce4bba42cb45b24e2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hugosantanna/actions/runs/34822437183"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-09-14T08:28:26.000Z",
      "commit": "651ccc925776125bb9233d76867c862107ea0ba5",
      "fileid": "https://r2.ropensci.org/30d858dc2c1f22ce01f9bb0838706cb1777db45a79f5d032fa8f083dc61a4542",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hugosantanna/actions/runs/34822437183"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-09-14T08:28:20.000Z",
      "commit": "651ccc925776125bb9233d76867c862107ea0ba5",
      "fileid": "https://r2.ropensci.org/afde52ec086633a6aece9e92bdae73eeb7a5b6187744bf572a4aba547e851fce",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hugosantanna/actions/runs/34822437183"
    }
  ]
}