连老师,您好!我用foreach写了如下命令,可是运行老出错,说”estimation result ABS_DA_MJ not found“,为什么?我不知道问题出在哪里?谢谢老师!(do文件中929-951行)
global vars "ABS_DA_MJ Positive_DA_MJ Negative_DA_MJ ABS_DA_Kothari_roa Positive_Kothari Negative_Kothari"
foreach v of varlist $vars{
reg `v' type_csr size1 sales_gr lev adj_roa firm_age big4 yr_*,robust
est store `v'
}
local m "ABS_DA_MJ Positive_DA_MJ Negative_DA_MJ ABS_DA_Kothari_roa Positive_Kothari Negative_Kothari"
local s "using Table04.csv"
esttab `m' `s',scalar(N r2_a F) replace ///
star(* 0.1 ** 0.05 *** 0.01) nogap b(%6.3f) ///
t(%6.3f) order(`order') mtitle(`m') title(pooled OLS full sample csr_score)