voodoo 发表于 2010-4-11 01:21 
xtset company year
tempfile tf
statsby b3=_b[x3] b4=_b[x4], by(year) saving(`tf', replace): reg y x1 x2 x3 x4
sort year
merge year using `tf'
gen B = b3 * x3 + b4 * x4
xtset company year
你好:請問我在執行到第三指令時,stata出現一個錯誤訊息為
「note: file `tf'.dta not found」,請問該如何解決呢?謝謝!