startyxf 发表于 2012-8-6 20:23 
by year: outreg2 using myfile, replace cttop(name) : reg y x
感谢你,但是我试了有问题。烦请您指点:
程序如下:
webuse hsng2
sort region
by region: outreg2 using myfile, replace cttop(name) : reg rent pcturban
报错信息如下:
. by region: outreg2 using myfile, replace cttop(name) : reg rent pcturban
outreg2 may not be combined with by