楼主: luojiahui11
4782 22

[回归分析求助] 根据某一变量的观察值将样本分成两组进行回归分析 [推广有奖]

21
花心对 发表于 2017-1-11 15:18:37
黃河泉 发表于 2017-1-11 07:29
类似(请对应修改)其中 id 代表不同公司,跑完后,所有的 $R^2$ 会存在 r2.dta 中。
file r2.dta could not be opened

您好 用完您的代码之后出现这样的结果是什么情况呢?谢谢

22
黃河泉 在职认证  发表于 2017-1-11 18:01:48
花心对 发表于 2017-1-11 15:18
file r2.dta could not be opened

您好 用完您的代码之后出现这样的结果是什么情况呢?谢谢
请把所有过程 show 出来!这样我没办法判断!

23
花心对 发表于 2017-1-11 18:52:56

. insheet using C:/Users/Yolanda/Desktop/first.csv, clear
(10 vars, 11480 obs)

. statsby r2=e(r2), by( _stkcd) saving(r2, replace): regress  _wkret _wretmc v1
> 0
(running regress on estimation sample)

      command:  regress _wkret _wretmc v10
           r2:  e(r2)
           by:  _stkcd
(note: file r2.dta not found)
file r2.dta could not be opened
r(603);

麻烦您了 谢谢!

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-31 23:21