Package: did Title: Treatment Effects with Multiple Periods and Groups Version: 2.5.1.906 Authors@R: c(person("Brantly", "Callaway", email = "brantly.callaway@uga.edu", role = c("aut", "cre")), person("Pedro H. C.", "Sant'Anna", email="pedro.santanna@emory.edu", role = c("aut"))) URL: https://bcallaway11.github.io/did/, https://github.com/bcallaway11/did/ Description: 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) . The main parameters are group-time average treatment effects which are the average treatment effect for a particular group at 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. Depends: R (>= 4.1.0) License: GPL-3 Encoding: UTF-8 LazyData: true Imports: BMisc (>= 1.4.8), Matrix, pbapply, ggplot2, DRDID (>= 1.4.0), generics, methods, tidyr, fastglm, data.table (>= 1.15.4), dreamerr (>= 1.4.0) Roxygen: list(markdown = TRUE) VignetteBuilder: knitr Suggests: rmarkdown, plm, here, knitr, covr, backports, broom, testthat (>= 3.1.8), withr, remotes, callr Config/roxygen2/version: 8.1.0 Config/pak/sysreqs: libicu-dev Repository: https://bcallaway11.r-universe.dev Date/Publication: 2026-10-30 15:14:29 UTC RemoteUrl: https://github.com/bcallaway11/did RemoteRef: HEAD RemoteSha: 9ead26b9d37c7f2bc202bebc4f5e8220ab7e8c13 NeedsCompilation: no Packaged: 2026-11-14 20:22:36 UTC; root Author: Brantly Callaway [aut, cre], Pedro H. C. Sant'Anna [aut] Maintainer: Brantly Callaway