Package: did 2.2.0.908

did: Treatment Effects with Multiple Periods and Groups

The standard Difference-in-Differences (DID) setup involves two periods and two groups -- a treated group and untreated group. Many applications of DID methods involve more than two periods and have individuals that are treated at different points in time. This package contains tools for computing average treatment effect parameters in Difference in Differences setups with more than two periods and with variation in treatment timing using the methods developed in Callaway and Sant'Anna (2021) <doi:10.1016/j.jeconom.2020.12.001>. The main parameters are group-time average treatment effects which are the average treatment effect for a particular group at a a particular time. These can be aggregated into a fewer number of treatment effect parameters, and the package deals with the cases where there is selective treatment timing, dynamic treatment effects, calendar time effects, or combinations of these. There are also functions for testing the Difference in Differences assumption, and plotting group-time average treatment effects.

Authors:Brantly Callaway [aut, cre], Pedro H. C. Sant'Anna [aut]

did_2.2.0.908.tar.gz
did_2.2.0.908.zip(r-4.5)did_2.2.0.908.zip(r-4.4)did_2.2.0.908.zip(r-4.3)
did_2.2.0.908.tgz(r-4.4-any)did_2.2.0.908.tgz(r-4.3-any)
did_2.2.0.908.tar.gz(r-4.5-noble)did_2.2.0.908.tar.gz(r-4.4-noble)
did_2.2.0.908.tgz(r-4.4-emscripten)did_2.2.0.908.tgz(r-4.3-emscripten)
did.pdf |did.html
did/json (API)
NEWS

# Install 'did' in R:
install.packages('did', repos = c('https://bcallaway11.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/bcallaway11/did/issues

Datasets:
  • mpdta - County Teen Employment Dataset

On CRAN:

11.53 score 305 stars 2 packages 612 scripts 3.4k downloads 24 exports 114 dependencies

Last updated 1 days agofrom:8d33d4c03d. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 05 2024
R-4.5-winOKNov 05 2024
R-4.5-linuxOKNov 05 2024
R-4.4-winOKNov 05 2024
R-4.4-macOKNov 05 2024
R-4.3-winOKNov 05 2024
R-4.3-macOKNov 05 2024

Exports:aggteAGGTEobjatt_gtbuild_sim_datasetcompute.aggtecompute.att_gtconditional_did_pretestDIDparamsget_wide_dataggdidglancegplotindicatormbootMPMP.TESTpre_process_didprocess_attgtreset.simsimsplottest.mboottidytrimmer

Dependencies:abindbackportsBHbigmemorybigmemory.sriBMiscbootbroomcarcarDatacaretclasscliclockcodetoolscolorspacecorrplotcowplotcpp11data.tableDerivdiagramdigestdoBydplyrDRDIDe1071fansifarverfastglmforeachFormulafuturefuture.applygenericsggplot2ggpubrggrepelggsciggsignifglobalsgluegowergridExtragtablehardhatipredisobanditeratorsKernSmoothlabelinglatticelavalifecyclelistenvlme4lubridatemagrittrMASSMatrixMatrixModelsmgcvmicrobenchmarkminqaModelMetricsmodelrmunsellnlmenloptrnnetnumDerivparallellyparglmpbapplypbkrtestpillarpkgconfigplyrpolynompROCprodlimprogressrproxypurrrquantregR6RColorBrewerRcppRcppArmadilloRcppEigenrecipesreshape2rlangrpartrstatixscalesshapeSparseMSQUAREMstringistringrsurvivaltibbletidyrtidyselecttimechangetimeDatetrusttzdbutf8uuidvctrsviridisLitewithr

Getting Started with the did Package

Rendered fromdid-basics.Rmdusingknitr::rmarkdownon Nov 05 2024.

Last update: 2023-08-30
Started: 2019-03-27

Introduction to DiD with Multiple Time Periods

Rendered frommulti-period-did.Rmdusingknitr::rmarkdownon Nov 05 2024.

Last update: 2021-12-03
Started: 2020-03-31

Pre-Testing in a DiD Setup using the did Package

Rendered frompre-testing.Rmdusingknitr::rmarkdownon Nov 05 2024.

Last update: 2023-08-30
Started: 2020-03-31

Problems with two-way fixed-effects event-study regressions

Rendered fromTWFE.Rmdusingknitr::rmarkdownon Nov 05 2024.

Last update: 2023-08-30
Started: 2021-01-14

Writing Extensions to the did Package

Rendered fromextensions.Rmdusingknitr::rmarkdownon Nov 05 2024.

Last update: 2020-12-08
Started: 2020-07-21