Hi all,
I'm working with panel data (U.S. states from 2000–2010) and estimating the effect of Castle Doctrine Laws (CDLs) on burglary rates. The laws were passed in different years across states, so I'm using a staggered adoption DiD design.
I'm also interested in how the effect of CDL varies depending on the unemployment rate in each state-year. Here's what I’ve done:
xtset state_id year
xtreg burglary cdl unemploy cdl_unemp i.year, fe cluster(state_id)
My interpretation is:
Thanks in advance — really appreciate any feedback or corrections!
I'm working with panel data (U.S. states from 2000–2010) and estimating the effect of Castle Doctrine Laws (CDLs) on burglary rates. The laws were passed in different years across states, so I'm using a staggered adoption DiD design.
I'm also interested in how the effect of CDL varies depending on the unemployment rate in each state-year. Here's what I’ve done:
- cdl is coded as 1 for a state after it adopts the law, 0 otherwise
- I generated an interaction: gen cdl_unemp = cdl * unemploy
xtset state_id year
xtreg burglary cdl unemploy cdl_unemp i.year, fe cluster(state_id)
My interpretation is:
- cdl captures the average effect of the law on burglary when unemployment = 0 (baseline)
- cdl_unemp tells me how that effect changes with higher unemployment
- State and year fixed effects should control for baseline differences and national shocks, so this works like a DiD setup with staggered treatment timing
Thanks in advance — really appreciate any feedback or corrections!
Comment