Dear all,
I want to do an IV regression with two endogenous variables, however I do not know if I am doing this the right way and if so, how to interpret the coefficients. This is my code:
in which lcocaha1 is my y-variable, and ylxlp_cof and ylxd_oaxlpcof my two endogenous variables. All other variables denoted in my code are controls.
I am using Stata 14.2
This is the first time I am using Statalist so I hope I stated my question clear enough. Hope you can help me!
Best,
Sophie
I want to do an IV regression with two endogenous variables, however I do not know if I am doing this the right way and if so, how to interpret the coefficients. This is my code:
Code:
foreach var of varlist lcocaha1 {
xi: xtivreg2 `var' lpop ylxlrer ///
yearxMuncode* YearInd*Wkmean ///
(ylxlp_cof ylxd_oaxlp_cof = ylxltop3cof ylxd_oaxltop3cof) ///
i.year, fe cluster(dept) partial(i.year) first
outreg2 using CI_Analysis.xls, se bdec(3) tdec(3) nocons excel
}
I am using Stata 14.2
This is the first time I am using Statalist so I hope I stated my question clear enough. Hope you can help me!
Best,
Sophie

Comment