0
我想用用戶編寫的命令esttab(st0085_2)給我一個迴歸估計表。我下面的代碼只給出最後一列(消費)。我該如何改變它,以便每列都是來自列表'outcomelist'的不同因變量?Stata:esttab只顯示foreach循環的最後一列嗎?
global outcomelist assets_total output_total expense_total profit_total self_empl income_dep hours_self_age16_65 hours_outside_age16_65 consumption
foreach var of global outcomelist {
xi: reg `var' i.paire if samplemodel==1 & treatment==1, cluster(demi_paire)
est store est_`var'
global estimates1 est_`var'
}
esttab $estimates1, b(2) se(2) r2 obslast