contdid: Difference-in-Differences with a Continuous Treatment

Provides methods for difference-in-differences with a continuous treatment and staggered treatment adoption. Includes estimation of treatment effects and causal responses as a function of the dose, event studies indexed by length of exposure to the treatment, and aggregation into overall average effects. Uniform inference procedures are included, along with both parametric and nonparametric models for treatment effects. The methods are based on Callaway, Goodman-Bacon, and Sant'Anna (2025) <doi:10.48550/arXiv.2107.02637>.

Version: 0.1.0
Depends: R (≥ 4.1.0)
Imports: BMisc (≥ 1.4.8), ptetools, checkmate, splines2, sandwich, ggplot2, MASS, npiv
Suggests: testthat (≥ 3.0.0), tidyr
Published: 2025-07-03
DOI: 10.32614/CRAN.package.contdid
Author: Brantly Callaway [aut, cre], Andrew Goodman-Bacon [aut], Pedro H. C. Sant'Anna [aut]
Maintainer: Brantly Callaway <brantly.callaway at uga.edu>
BugReports: https://github.com/bcallaway11/contdid/issues
License: GPL-3
URL: https://bcallaway11.github.io/contdid/, https://github.com/bcallaway11/contdid
NeedsCompilation: no
Citation: contdid citation info
Materials: README NEWS
CRAN checks: contdid results

Documentation:

Reference manual: contdid.pdf

Downloads:

Package source: contdid_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): contdid_0.1.0.tgz, r-oldrel (x86_64): contdid_0.1.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=contdid to link to this page.