contdid
An R package for difference-in-differences with a continuous treatment.
Installation
You can install the development version of contdid from GitHub with:
# install.packages("devtools")
devtools::install_github("bcallaway11/contdid")
library(contdid)Package Status: Alpha Version
This is an alpha version of the contdid package. The core features
are implemented and functional, but the package remains under active
development. The API may change, and additional functionality is
planned.
We welcome feedback and encourage users to report bugs or other issues via the GitHub Issues page.
✅ Currently Supported
- ☑️ Continuous treatments
- ☑️ Staggered treatment adoption (i.e., more than two periods and variation in timing across units)
- ☑️ Aggregations into dose-specific ATT’s or ACRT’s
- ☑️ Aggregations into ATT or ACRT versions of event studies
- ☑️ User-specified flexible parametric models for treatment effects as a function of the dose