cdsimeq (d e f )(a b c ).,nofirst nosecond est // est很重要将你回归结果保存在model_1和model_2中
drop I_a I_d //删除第二阶段回归预测的a和d值
_estimates unhold model_1 // 释放model_1,紧接着输出
esttab using test.rtf, replace b(%10.4f) star(* 0.1 ** 0.05 *** 0.01) se scalars(N r2 ll aic bic)
_estimates unhold model_2 // 释放model_2,紧接着就append到之前输出的文档中,这样回归结果全部导出,至于是esttab还是outreg2之类,
// 你试试看,我试了esttab没任何问题
esttab using test.rtf, a b(%10.4f) star(* 0.1 ** 0.05 *** 0.01) se scalars(N r2 ll aic bic)