- Data: mpdta, castle_doctrine, bacon_divorce (fetched)
- Functions:
sp.callaway_santanna, sp.sun_abraham, sp.event_study, sp.honest_did
- Starting material: notebook 08, StatsPAI-Paper-DiD-JAE
The question: did castle doctrine laws change homicides?
The identifying assumption: parallel trends and no anticipation, cohort by cohort
Doing it by hand: the Goodman-Bacon decomposition of TWFE
Asking the agent: sp.callaway_santanna and sp.sun_abraham
Reading the agent’s work: group-time effects, aggregation and sp.honest_did
Where agents go wrong: defaulting to two-way fixed effects