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?
Related Posts with Detecting autocorrelation in DiD: can I use xtserial?
Coefplot colors across subgraphsHi, I would like to use coefplot to plot different regression results on the same graph. I would li…
I am looking for "Local_Authority_Districts_December_2016_Full_Clipped_Boundaries_in_Great_Britain.zip” file, Can you help?I want to study spatial measurement analysis with stata, but I cann't find the above sample data for…
Convert tabs to spaces in results windowHello everyone, I have the habit of inserting tabs in my code to facilitate readability. Apparently,…
New versions of xlink and ipwbreg on SSCThanks as always to Kit Baum, new versions of the xlink and ipwbreg packages are now available for d…
Two-way line graphsI hope someone can help me as I have spent countless hours trying to recreate the graph output in jo…
Subscribe to:
Post Comments (Atom)
0 Response to Detecting autocorrelation in DiD: can I use xtserial?
Post a Comment