Hello,
I am working on the following Diff in diff model in stata:
reg ln_sales = i.treatment +treatment_after + i.week
This is a DID where I'm looking at the treatment effect on sales for four different grocery stores when a dollar store opens nearby. "Treatment" is a dummy that equals 1 for the treatment group (i.e. when one of the four stores is observed), and "treatmet_after" is an interaction term that takes the value 1 if one of the four stores are observed on a date after the treatment. The sales are average weekly sales over a time span of three years.
I've come to understand that one of the biggest problems in DID models is autocorrelation.
Since the most common AC tests do not work for panel data, I've tried to use the command xtserial, which is based on the Woolridge test. However, it only works when I omit the variable i.treatment as independent variable, which makes me suspect that the Woolridge test is not suited for a DiD model. Am I correct? I've tried to write out the DiD and differentiate it as this article suggests and honestly, I'm a bit confused about how this can be interpreted for a DiD.
Are there any other ways I can detect autocorrelation in a DiD?
Also, it would be grat to know the potential reasons for autocorrelation. I can imagine that the model's errors will correlate every easter, christmas etc, as sales fluctuate differently in these time periods. However, won't the weekly dummies adjust for this? Or are there other factors I should think of?
0 Response to Detecting autocorrelation in DiD: can I use xtserial?
Post a Comment