Skip to content

badcontrols

1.0.1Package record

Difference-in-Differences with Bad Controls

0packages depend
599downloads / year
88.8%test coverage
13/13flavors OK

Overview

About

Implements methods for difference-in-differences with bad controls, i.e., time-varying covariates that are affected by the treatment. Provides imputation, doubly robust, and machine learning estimators that are based on Caetano, Callaway, Payne, and Sant'Anna (2026) doi:10.48550/arXiv.2608.03881.

Changes in 1.0.1
  • Tests now pin num_threads = 2 for the grf-backed estimators so that R CMD check stays within CRAN's two-core limit. No user-facing changes.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.8 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OKNow
  • OK5 OK2026-09-13
Advisories

none known

Documentation

In release 1.0.1
READMEYes · 659 wordsVignettesYes · 2 · dynamicNEWSYes · 100% structured · mentions 1.0.1Citation fileYes · cites a publication
Help pages
8 (4 internal)includes a package overview page
Examples that run
75%3 run in a plain check · 1 never run
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
38%

Downloads

599
CRAN downloads in the past year
Rank #22,012 · ~2/day · ~50/mo
Daily download trend is not available in this view yet.
48530 days
59990 days
5991 year
Compare downloads with other packages →
Also on8 r2u36 autocran

Repository

5Stars
2Forks
1Open issues
0Open PRs
0Releases
68Commits
2Commit identities
68 commits · Last activity 2026-09-03 · +66.7% stars, 30d · The default branch showed an older version (1.0.0) than CRAN on 2026-10-18
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
not measured
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2026-09-13 · 02026-10-21 · 5
PracticesBeta

8 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/hugosantanna/badcontrols on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
README.qmdpkgdown

GitHub Pages site last deployed 2026-09-03

Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
Show all practicesHide 1 practice
Research and citation (1)
CITATION.cff
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-03-05
    Pull request it wrote: opened by a project member
    Commits: at least 43 crediting it in the message
Models named in its commits
  • Claude Sonnet 540 commits · Jul to Sep 2026
  • Claude Opus 4.63 commits · Mar 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

Installing badcontrols adds 41 packages (22 with compiled code, 43 MB of source tarballs). Heaviest: BH 14 MB, ggplot2 6.0 MB, data.table 5.7 MB.

Depends (1)
R >= 4.1.0
Imports (2)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (4)
Author, Maintainer since 1.0.1 (2026)
Releases (1)
  • 1.0.1Latest
    2026-09-12 · current release
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-09-12
Total releases
1 / 1 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 4.1.0
Bundled data
128 KB / 1 file
Download size
246 KB

Cite

Cite this package

Run in R for the authors' entry:

citation("badcontrols")

The package provides a citation file, so citation() returns the authors' own entry.

The repository also keeps a CITATION.cff.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for badcontrols version 1.0.1 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy