σ StatsDoge Causal inference workflows
9
σ Building block · used in 1 workflow

Group-time ATT — att_gt()

ATT DiDEvent Study
Source did — Callaway & Sant'Anna
Summary by StatsDoge

Difference-in-differences with multiple periods and staggered adoption: ATT(g,t) with clean (not-yet-treated) controls.

You're looking at a building block — one of the estimators a workflow uses inside its pipeline. You reached it from a workflow step; it's used in 1 workflow (listed below).
https://github.com/bcallaway11/did unpinned — link may rot

⚠️ Unofficial community write-up of did. This account is not affiliated with the authors; it summarizes the public documentation for demonstration. All credit & copyright belong to the original authors.

What it does

Estimates group-time average treatment effects ATT(g, t) for every treatment cohort g and period t, then aggregates them into dynamic (event-study), group, or calendar summaries — avoiding the negative-weighting problems of two-way fixed effects under staggered adoption.

library(did)
att <- att_gt(yname = "Y", tname = "period", idname = "id",
             gname = "first.treat", data = panel)
aggte(att, type = "dynamic")

Used in these workflows (1)

Discussion (0)

  • No comments yet — start the conversation.