Hi Statalist!
I am currently learning how to use Stata, so this might be a bit basic. But I am using a diff-in-diff approach to see the effect on my dependent variable from being part of this particular welfare program. My dependent variable is a dummy (meaning that all the variables in the regression below are dummies). My question is how it works if I want to add some controls in the regression? Do I just add them to the code I have now, lining up after the interaction variable?
reg dependentvar posttreatment treated interaction, vce(cluster district)
Also, when I perform this regression as it is stated above, the r2 is extremely low (which is expected). But still, I just wonder out of curiosity, to what extent should the r2 coefficient be considered when it is a diff-in-diff regression and all included varaibles are dummies?
Thank you.
I am currently learning how to use Stata, so this might be a bit basic. But I am using a diff-in-diff approach to see the effect on my dependent variable from being part of this particular welfare program. My dependent variable is a dummy (meaning that all the variables in the regression below are dummies). My question is how it works if I want to add some controls in the regression? Do I just add them to the code I have now, lining up after the interaction variable?
reg dependentvar posttreatment treated interaction, vce(cluster district)
Also, when I perform this regression as it is stated above, the r2 is extremely low (which is expected). But still, I just wonder out of curiosity, to what extent should the r2 coefficient be considered when it is a diff-in-diff regression and all included varaibles are dummies?
Thank you.
Comment