1.分组回归
sort state
by state:reg xxx xxx
但是这样不能直接用outreg导出,采用下面的方法
forvalues t = 2001/2008{ qui reg y x if year == `t' est store r_`t' }
然后不小心看到了一位大神的三种方法....没试过先mark
三种策略,建议你都试试:
(1)直接用outreg2的一项功能, // help outreg2##s_1
bysort compliance: outreg2 using c3.doc, replace: reg ares time size ROA growth lev profquality