Hello!
I have a dataset of grocery store transactions in Washington DC, Arlington County, VA, and Montgomery County, MD around the time period of Jan. 1 2012 when that locality imposed a bag tax of 5 cents per bag. I'm currently trying to run a differences in differences model to look at the effect of plastic bag consumption in Montgomery County, MD before and after the tax is implemented. I'm currently running this regression:
code:
regress plastic md post postXmd
but my results seem to be off and I cannot understand why.
I'm still fairly new to stata, so any help would be appreciated. Thanks!
I've attached a sample of my dataset with the variables I believe are the key variables for my analysis. The plastic variable represents the number of plastic bags used and reuse represents number of reusable bags used. Post =1 if after Jan 12, 2012 (when tax occurred).
input byte(plastic reuse post) float(dc va md postXmd postXdc postXva)
2 0 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0 0
2 0 0 0 0 1 0 0 0
2 0 0 0 0 1 0 0 0
0 4 0 0 0 1 0 0 0
3 0 0 0 0 1 0 0 0
2 0 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0 0
0 1 0 0 0 1 0 0 0
0 5 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0 0
2 0 0 0 0 1 0 0 0
2 0 0 0 0 1 0 0 0
2 0 0 0 0 1 0 0 0
4 0 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0 0
2 0 0 0 0 1 0 0 0
0 6 0 0 0 1 0 0 0
0 1 0 0 0 1 0 0 0
2 0 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0 0
6 0 0 0 0 1 0 0 0
0 0 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0 0
2 0 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0 0
0 0 0 0 0 1 0 0 0
3 0 0 0 0 1 0 0 0
6 0 0 0 0 1 0 0 0
4 0 0 0 0 1 0 0 0
7 0 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0 0
2 1 0 0 0 1 0 0 0
0 0 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0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 0 0
3 0 0 0 0 1 0 0 0
10 0 0 0 0 1 0 0 0
2 0 0 0 0 1 0 0 0
8 0 0 0 0 1 0 0 0
I have a dataset of grocery store transactions in Washington DC, Arlington County, VA, and Montgomery County, MD around the time period of Jan. 1 2012 when that locality imposed a bag tax of 5 cents per bag. I'm currently trying to run a differences in differences model to look at the effect of plastic bag consumption in Montgomery County, MD before and after the tax is implemented. I'm currently running this regression:
code:
regress plastic md post postXmd
but my results seem to be off and I cannot understand why.
I'm still fairly new to stata, so any help would be appreciated. Thanks!
I've attached a sample of my dataset with the variables I believe are the key variables for my analysis. The plastic variable represents the number of plastic bags used and reuse represents number of reusable bags used. Post =1 if after Jan 12, 2012 (when tax occurred).
input byte(plastic reuse post) float(dc va md postXmd postXdc postXva)
2 0 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0 0
2 0 0 0 0 1 0 0 0
2 0 0 0 0 1 0 0 0
0 4 0 0 0 1 0 0 0
3 0 0 0 0 1 0 0 0
2 0 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0 0
0 1 0 0 0 1 0 0 0
0 5 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0 0
2 0 0 0 0 1 0 0 0
2 0 0 0 0 1 0 0 0
2 0 0 0 0 1 0 0 0
4 0 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0 0
2 0 0 0 0 1 0 0 0
0 6 0 0 0 1 0 0 0
0 1 0 0 0 1 0 0 0
2 0 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0 0
6 0 0 0 0 1 0 0 0
0 0 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0 0
2 0 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0 0
0 0 0 0 0 1 0 0 0
3 0 0 0 0 1 0 0 0
6 0 0 0 0 1 0 0 0
4 0 0 0 0 1 0 0 0
7 0 0 0 0 1 0 0 0
1 0 0 0 0 1 0 0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