clear all
set more off
cap log close
cd "C:\Users\Administrator\Desktop\新建文件夹"
use "新新2位数行业新数据.dta", clear
egen g=group(businessnature4)
su g
loc n=r(max)
forv i=1/`n'{
preserve
keep if g==`i'
xtbalance, range(2005 2007)
reg Y2 X1 X2, noc robust
est store R1
outreg2 using 2digit3.xls, cttop(OLS:C`i') e(all) append
outreg2 using 2digitnoa3.xls, cttop(OLS:C`i') noas append
xtabond2 Y2 X1 X2, gmm(X1) iv(zk allempl_arvenum X2) noc robust
est store G1
outreg2 using 2digit3.xls, cttop(GMM:C`i') e(all) append
outreg2 using 2digitnoa3.xls, cttop(GMM:C`i') noas append
restore
}


雷达卡




京公网安备 11010802022788号







