全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
15973 7
2014-03-10
如题,固定效应模型和随机效应模型中如何不含截距项???万分感谢
二维码

扫码加我 拉你入群

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

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

全部回复
2014-3-10 20:36:56
using option: nocons

any reason not to use intercept?
二维码

扫码加我 拉你入群

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

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

2014-3-10 22:02:52
jjjj6666 发表于 2014-3-10 20:36
using option: nocons

any reason not to use intercept?
您好,感谢您的回复。但是运行之后
xtreg dgdp dlgdp dden dlden dcap dngd,fe nocons
option nocons not allowed
r(198);
. xtreg dgdp dlgdp dden dlden dcap dngd,re nocons
option nocons not allowed
r(198);
还是错误,想请问您命令应该怎么改?
不含截距项是因为我用POLS、FGLS、差分GMM和系统GMM回归,不含截距项的结果要优于含截距项的,固定和随机效应不知如何改变命令使其不含截距项?麻烦您
二维码

扫码加我 拉你入群

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

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

2014-3-11 03:13:42
xtreg with fe option doesn't allow for nocons.  There is a reason to not have that option.

If you really want to not use intercept, you may try ols with the group dummies?
二维码

扫码加我 拉你入群

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

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

2014-3-11 09:32:56
jjjj6666 发表于 2014-3-11 03:13
xtreg with fe option doesn't allow for nocons.  There is a reason to not have that option.

If you ...
十分感谢您的回复,还能麻烦您大体说一下如何用group dummy操作吗?谢谢您
二维码

扫码加我 拉你入群

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

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

2014-3-11 15:54:03
jianhouhou1989 发表于 2014-3-11 09:32
十分感谢您的回复,还能麻烦您大体说一下如何用group dummy操作吗?谢谢您
这个不加常数项的理由是站不住脚的,如果是论文,肯定
会被提问。而且在不加入常数项时,很多统计量都没有意义,比如R2。

如果你想要这样做,且个体数不是很大,那可以用reg命令
假如个体变量为company
复制代码
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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