outreg2 命令可以直接输出为word格式 但是不如直接展示在界面上更加直观。
因此可以使用est 和esttab 命令进行展示。
est 命令全称为estimates -- stata手册定义为:Save and manipulate estimation results
est store 全称为estimates store -- stata手册定义为:Store and restore estimation results,通常用于保存回归的系数等结果。
esttab --stata手册定义为: Display formatted regression table
例如:
forval i = 1/3{
gen price_new_`i'= `i'*ln(price)
reg price_new_`i' mpg rep78 weight length
est store m`i'
}
esttab m1 m2 m3