蓝色 发表于 2012-12-14 23:21 
你难道不能用人家数据写成一个完整命令,让大家看看是哪里出的问题吗。
你说drop或keep不能用,请吧你自己 ...
sysuse auto
reg price weight mpg
outreg2 using reg.xls, replace keep(w*)
这个理想的效果是列出weight 和 constant的系数
但是出来只有constant。
另外一个例子:
webuse nlwork,clear
xtset idcode
xi: xtreg ln_w ind_code collgrad hours i.birth_yr*tenure, cluster(idcode) fe i(idcode)
outreg2 using reg.xls, replace drop(*Xt*)
drop 可以用*Xt*,但是keep不成