蓝色 发表于 2021-6-24 12:06 
没法同时
还是写if条件句,分2次输出到一个表格里吧
webuse grunfeld,clear
gen d=0 if company<=5
replace d=1 if company>5
bys d:outreg2 using xxx.doc,dec(3) replace:areg invest mvalue kstock,a(company)
(1) (2)
d 0 d 1
VARIABLES invest invest
mvalue 0.115*** 0.0827***
(0.0168) (0.00790)
kstock 0.321*** 0.114***
(0.0243) (0.0139)
Constant -82.42*** -7.545***
(29.66) (2.648)
Observations 100 100
R-squared 0.931 0.883
Standard errors in parentheses
*** p<0.01, ** p<0.05, * p<0.1