Dear all,
Hi!
I am trying to implement a DID test using city-year panel data (balanced). Here are the models and corresponding codes:
treat: =1 for treated cities. 0 otherwise.
post: =1 for when and after the shock. =0 for prior to the shock (policy).
DID = treat*post
Model 1:
reghdfe Y DID, a(treat post)
Model 2:
reghdfe Y DID, a(treat post country)
Model 3:
reghdfe Y DID, a(country#treat country#post)
Model 4:
reghdfe Y DID, a(country#treat post)
What I am trying to do in models 2 and 3 is to compare the Treated Cities and Control Cities only within the same country.
Is model 2 enough for my goal? When and why are models 2 and 3 different, and when are they identical?
Kind regards,
Hall
Hi!
I am trying to implement a DID test using city-year panel data (balanced). Here are the models and corresponding codes:
treat: =1 for treated cities. 0 otherwise.
post: =1 for when and after the shock. =0 for prior to the shock (policy).
DID = treat*post
Model 1:
reghdfe Y DID, a(treat post)
Model 2:
reghdfe Y DID, a(treat post country)
Model 3:
reghdfe Y DID, a(country#treat country#post)
Model 4:
reghdfe Y DID, a(country#treat post)
What I am trying to do in models 2 and 3 is to compare the Treated Cities and Control Cities only within the same country.
Is model 2 enough for my goal? When and why are models 2 and 3 different, and when are they identical?
Kind regards,
Hall
Comment