I have a dataset that looks like this, where town is the town id, t is time period, treatment is a dummy indicating if the town was treated or not, after is an indicator for when treatment started in t, and y is the outcome:
I am trying to set up a panel DiD regression with town and t fixed effects. Is this the correct way to set up that panel regression (DiD with town and year fixed effects) in stata or am I missing something?
xtset town t
xtreg: xtreg y i.after##i.treatment, fe robust
Any help would be very much appreciated since I am not very familiar with DiD models using fe and I have been unlucky so far finding an answer in the forum. Thank you!
I am trying to set up a panel DiD regression with town and t fixed effects. Is this the correct way to set up that panel regression (DiD with town and year fixed effects) in stata or am I missing something?
xtset town t
xtreg: xtreg y i.after##i.treatment, fe robust
Any help would be very much appreciated since I am not very familiar with DiD models using fe and I have been unlucky so far finding an answer in the forum. Thank you!
Comment