蓝色 发表于 2018-6-29 07:38 
1、把 你用的具体的命令都写全了
2、把数据的信息介绍清楚
以上是具有代表性的数据
回归命令如下
use "数据.dta",clear
quietly reghdfe y x ,absorb(i.year)
est store m1
quietly reghdfe y x ,absorb(i.year i.desCountryCode1)
est store m2
quietly reghdfe y x ,absorb(i.year i.desCountryCode1 i.hs8_1)
est store m3
quietly reghdfe y x ,absorb(i.year i.desCountryCode1 i.hs8_1 i.country_year)
est store m4
quietly reghdfe y x ,absorb(i.year i.desCountryCode1 i.hs8_1 i.country_year i.hs8_1#i.desCountryCode1)
est store m5
esttab m1 m2 m3 m4 m5 using hhh.rtf, nocon ar2 compress ///
starlevels(* 0.10 ** 0.05 *** 0.01) mtitles("ly" "ly" "ly" "ly" "ly" )
eststo clear
报错如下:
macro substitution results in line that is too long
The line resulting from substituting macros would be longer than allowed. The maximum allowed length is 165,216 characters, which is
calculated on the basis of set maxvar.
You can change that in Stata/SE and Stata/MP. What follows is relevant only if you are using Stata/SE or Stata/MP.
The maximum line length is defined as 16 more than the maximum macro length, which is currently 165,200 characters. Each unit
increase in set maxvar increases the length maximums by 33. The maximum value of set maxvar is 32,767. Thus, the maximum line
length may be set up to 1,084,827 characters if you set maxvar to its largest value.
r(920);
所以我在写入数据前执行
set max_memory .
use "数据.dta",clear
然后进行上述回归,报出相同错误,我不太清楚接下来还应如何修正?