全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1519 1
2018-11-27
C63NEHRH$FF~7KRS[{X6(33.png   statsby _b, by(year ind) saving(123.dta, replace): reg D_ta D_a D_r D_p, noco
> ns
(running regress on estimation sample)

      command:  regress D_ta D_a D_r D_p, nocons
           by:  year ind

Statsby groups
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
xxxxx.......................................

.
.
. merge m:1 year ind using 123.dta

    Result                           # of obs.
    -----------------------------------------
    not matched                             0
    matched                             2,327  (_merge==3)
    -----------------------------------------

. gen yhat = D_a*_b_D_a + D_r*_b_D_r + D_p*_b_D_p+_b_cons
_b_cons not found
r(111);



二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2018-12-2 09:30:26
常涓 发表于 2018-11-27 15:22
statsby _b, by(year ind) saving(123.dta, replace): reg D_ta D_a D_r D_p, noco
> ns
(running regr ...
已解决,因为这个做的是nocons,但是有人做的是有常数系数的,看了下用修正琼斯模型算DA时是没常数项的,参照此方法在用R(2006)真实盈余模型时是有常数的
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群