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

Sun & Abraham event study — sunab()

ATT DiDEvent StudyFixed Effects
Source fixest — Laurent Bergé
Summary by StatsDoge

Interaction-weighted event-study estimator robust to heterogeneous treatment timing, in a fast fixed-effects framework.

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/lrberge/fixest unpinned — link may rot

⚠️ Unofficial community write-up of fixest. 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

feols(... sunab(cohort, period) ...) fits the Sun & Abraham (2021) interaction-weighted event study, which is unbiased under heterogeneous treatment timing where naive TWFE event-study coefficients are contaminated.

library(fixest)
m <- feols(y ~ sunab(cohort, period) | id + period, data = panel)
iplot(m)

Used in these workflows (1)

Discussion (0)

  • No comments yet — start the conversation.