Hi all,

I want to be able to add the estat, endog forceweights output using outreg2 to my IV regressions so that I can report how good the IV is for each regression.

I cannot seem to be able to add it. I would appreciate any help

Below is my code:

Code:
reg poor_health formal_debt $basicreg [pw=wgt] if wave==1, robust
outreg2 using "/Users/natansklair/Google Drive/Masters/NIDS/Finalregs/Regression1.xls", replace


local i=2
while `i'<6 {

reg poor_health formal_debt $basicreg [pw=wgt] if wave==`i', robust
outreg2 using "/Users/natansklair/Google Drive/Masters/NIDS/Finalregs/Regression1.xls", append
ivregress 2sls poor_health $basicreg (formal_debt = L.formal_debt) [pw=wgt]  if  wave==`i' , robust
estat endog, forceweights
local fendog`i' `r(p_durbin)'
outreg2 using "/Users/natansklair/Google Drive/Masters/NIDS/Finalregs/Regression1.xls", append addst(`fendog`i'')
esttab
local i=`i'+1
}