Package: contdid 0.1.0
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>.
Authors:
contdid_0.1.0.tar.gz
contdid_0.1.0.zip(r-4.7)contdid_0.1.0.zip(r-4.6)contdid_0.1.0.zip(r-4.5)
contdid_0.1.0.tgz(r-4.6-any)contdid_0.1.0.tgz(r-4.5-any)
contdid_0.1.0.tar.gz(r-4.7-any)contdid_0.1.0.tar.gz(r-4.6-any)
contdid_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
contdid/json (API)
NEWS
| # Install 'contdid' in R: |
| install.packages('contdid', repos = c('https://bcallaway11.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/bcallaway11/contdid/issues
Pkgdown/docs site:https://bcallaway11.github.io
Last updated from:443c1c12f0. Checks:7 ERROR, 2 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | ERROR | 171 | ||
| source / vignettes | OK | 181 | ||
| linux-release-x86_64 | ERROR | 167 | ||
| macos-release-arm64 | ERROR | 97 | ||
| macos-oldrel-arm64 | ERROR | 108 | ||
| windows-devel | ERROR | 139 | ||
| windows-release | ERROR | 108 | ||
| windows-oldrel | ERROR | 112 | ||
| wasm-release | OK | 127 |
Exports:choose_knots_evenchoose_knots_quantilecont_didcont_did_acrtcont_two_by_two_subsetggcont_didsetup_pte_contsimulate_contdid_data
Dependencies:backportsBHbigmemorybigmemory.sriBMisccheckmateclicpp11crayondata.tabledplyrDRDIDfarverfastglmFormulagenericsggplot2gluegtablehmsisobandlabelinglatticelifecyclemagrittrMASSMatrixnpivpbapplypillarpkgconfigprettyunitsprogressptetoolspurrrR6RColorBrewerRcppRcppArmadilloRcppEigenrlangS7sandwichscalessplines2stringistringrtibbletidyrtidyselecttrustutf8uuidvctrsviridisLitewithrzoo
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Choose Evenly Spaced Knots | choose_knots_even |
| Choose Knots at Quantiles | choose_knots_quantile |
| Difference-in-differences with a Continuous Treatment | cont_did |
| Compute ACRT's for a Timing Group and Time Period | cont_did_acrt |
| Continuous Two-by-Two Subset | cont_two_by_two_subset |
| Plot Results with a Continuous Treatment | ggcont_did |
| Setup for DiD with a Continuous Treatment | setup_pte_cont |
| Simulate data for DiD with a Continuous Treatment | simulate_contdid_data |
