hello everyone,
here I am again with a question on difference-in-differences.
I have seen that there are already similar questions on the forum but I have not found an answer that truly helps me.
I want to perform a diff-in-diff with a dichotomous dependent variable, fertility.
In addition to this, as implied by the method, I have a time variable with the two years of interest and a treatment variable that divides the two treatment and control groups. Then, I have an interaction variable between time and treatment. My data are cross-sectional. I tried to to this with three different commands, on the basis on the previous questions asked here. Can you suggest me which is the correct one? Can you als help me with the interpretation of the output? Thank you very much.
1)
reg fertility i.treated##i.time
--------------------------------------------------------
Outcome var. | ferti~y | S. Err. | |t| | P>|t|
----------------+---------+---------+---------+---------
Before | | | |
Control | 0.192 | | |
Treated | 0.167 | | |
Diff (T-C) | -0.024 | 0.004 | -6.04 | 0.000***
After | | | |
Control | 0.221 | | |
Treated | 0.180 | | |
Diff (T-C) | -0.041 | 0.004 | 11.70 | 0.000***
| | | |
Diff-in-Diff | -0.017 | 0.005 | 3.15 | 0.002***
--------------------------------------------------------
2)
logistic fertility i.treated##i.time
fertility | Odds ratio Std. err. z P>|z| [95% conf. interval]
-------------+----------------------------------------------------------------
treated |
treated | .8472373 .0227018 -6.19 0.000 .8038908 .892921
|
time |
y2014 | 1.196859 .023733 9.06 0.000 1.151235 1.24429
|
treated#time |
treated #|
y2014 | .9114572 .0319333 -2.65 0.008 .8509696 .9762442
|
_cons | .2370407 .0036075 -94.59 0.000 .2300745 .2442177
3)
margins i.treated#i.time
------------------------------------------------------------------------------------
| Delta-method
| Margin std. err. z P>|z| [95% conf. interval]
-------------------+----------------------------------------------------------------
treated#time |
not treated#y2008 | .1916191 .0023574 81.28 0.000 .1869987 .1962396
not treated#y2014 | .2210043 .0021885 100.98 0.000 .2167149 .2252937
treated#y2008 | .1672424 .0030715 54.45 0.000 .1612225 .1732624
treated#y2014 | .1797107 .0027496 65.36 0.000 .1743215 .1850999
------------------------------------------------------------------------------------
here I am again with a question on difference-in-differences.
I have seen that there are already similar questions on the forum but I have not found an answer that truly helps me.
I want to perform a diff-in-diff with a dichotomous dependent variable, fertility.
In addition to this, as implied by the method, I have a time variable with the two years of interest and a treatment variable that divides the two treatment and control groups. Then, I have an interaction variable between time and treatment. My data are cross-sectional. I tried to to this with three different commands, on the basis on the previous questions asked here. Can you suggest me which is the correct one? Can you als help me with the interpretation of the output? Thank you very much.
1)
reg fertility i.treated##i.time
--------------------------------------------------------
Outcome var. | ferti~y | S. Err. | |t| | P>|t|
----------------+---------+---------+---------+---------
Before | | | |
Control | 0.192 | | |
Treated | 0.167 | | |
Diff (T-C) | -0.024 | 0.004 | -6.04 | 0.000***
After | | | |
Control | 0.221 | | |
Treated | 0.180 | | |
Diff (T-C) | -0.041 | 0.004 | 11.70 | 0.000***
| | | |
Diff-in-Diff | -0.017 | 0.005 | 3.15 | 0.002***
--------------------------------------------------------
2)
logistic fertility i.treated##i.time
fertility | Odds ratio Std. err. z P>|z| [95% conf. interval]
-------------+----------------------------------------------------------------
treated |
treated | .8472373 .0227018 -6.19 0.000 .8038908 .892921
|
time |
y2014 | 1.196859 .023733 9.06 0.000 1.151235 1.24429
|
treated#time |
treated #|
y2014 | .9114572 .0319333 -2.65 0.008 .8509696 .9762442
|
_cons | .2370407 .0036075 -94.59 0.000 .2300745 .2442177
3)
margins i.treated#i.time
------------------------------------------------------------------------------------
| Delta-method
| Margin std. err. z P>|z| [95% conf. interval]
-------------------+----------------------------------------------------------------
treated#time |
not treated#y2008 | .1916191 .0023574 81.28 0.000 .1869987 .1962396
not treated#y2014 | .2210043 .0021885 100.98 0.000 .2167149 .2252937
treated#y2008 | .1672424 .0030715 54.45 0.000 .1612225 .1732624
treated#y2014 | .1797107 .0027496 65.36 0.000 .1743215 .1850999
------------------------------------------------------------------------------------
Comment