全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
12567 9
2018-06-08
在文献中看到“Regressions 2–6 include firm fixed effects. Errors in parentheses are clustered at the firm level.”
效仿它的做法,正常的命令应该是:
xi:xtreg y x i.year ,fe vce cluster(number)
注:numbe为公司股票代码
但问题在于我需要做两组间的组间系数差异检验,即:
suest m1 m2
test [m1_mean]x=[m2_mean]x
如果还是要控制公司固定效应,此时不能使用xtreg命令。
只能用xi:reg y x i.year i.number
但是这个时候如何cluster 呢?尝试命令如下:
xi:reg y x i.year i.number if a==1 , vce cluster(number)
est store m1
xi:reg y x i.year i.number if a==0, vce cluster(number)
est store m2
suest m1 m2
test [m1_mean]x=[m2_mean]x
但反馈是
m1 was estimated with cluster(number).
re-estimate without the cluster() option, and
specify the cluster() option with suest.



二维码

扫码加我 拉你入群

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

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

全部回复
2018-6-9 16:11:38
(help) suest 有个选项
复制代码
请试试看!
二维码

扫码加我 拉你入群

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

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

2018-6-11 11:21:01
还是不行呢,黄老师。
suest m1 m2,vce(cluster number )
m1 was estimated with cluster(number).
re-estimate without the cluster() option, and
specify the cluster() option with suest.
r(322);
二维码

扫码加我 拉你入群

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

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

2018-6-11 11:43:25
caicsmile 发表于 2018-6-11 11:21
还是不行呢,黄老师。
suest m1 m2,vce(cluster number )
m1 was estimated with cluster(number).
1. 请用回复。 2. 试试
复制代码
二维码

扫码加我 拉你入群

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

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

2019-4-4 10:30:23
黃河泉 发表于 2018-6-11 11:43
1. 请用回复。 2. 试试
能行,谢谢老师。查了help suest发现这个命令没有返回值,我现在的做法是手动复制chi和p,用来检验分组系数差异。
二维码

扫码加我 拉你入群

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

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

2019-4-4 11:04:19
苦鬼2014 发表于 2019-4-4 10:30
能行,谢谢老师。查了help suest发现这个命令没有返回值,我现在的做法是手动复制chi和p,用来检 ...
请 help test
复制代码
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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