*-10.2.4 -outreg2- 命令:专业输出【Word、Excel文档】
sysuse nlsw88, clear
tab race, gen(d_race)
drop d_race1
tab occu, gen(d_occu)
drop d_occu1
reg wage hours ttl_exp married
est store m1
reg wage hours ttl_exp married d_race*
est store m2
reg wage hours ttl_exp married d_race* d_occu*
est store m3
*-基本用法:在数据窗口中呈现结果
outreg2 [m1 m2 m3] using tab01, seeout replace
*-输出 Word 或 Excel 文档
outreg2 [m1 m2 m3] using tab01, word replace
outreg2 [m1 m2 m3] using tab01, excel replace
*-同时输出Word和Excel文档(亦可增加 tex 选项,输出 tex 文档)
outreg2 [m1 m2 m3] using tab01, word excel replace
……
*__-<-<-<-<- 【一个模板】 ->->->->-__
*
*
*________________________________outreg2模板_________________________________
outreg2 [m1 m2 m3] using tab01, word replace ///
title("表1: 美国妇女工资决定因素估计结果") /// // (T1)
drop(d_occu*) sortvar(married hours) /// // (T2)
tdec(2) rdec(3) adjr2 e(F) /// // (T3)
nonote /// // (T4)
addnote("注:(1)***,**,*分别表示在1%,5%和10%水平上显著;", ///
"(2)括号中为标准误;", ///
"(3)其它注释语句。")
*____________________________________________________________________________