楼主: yuanhu
64953 25

[回归分析求助] 如何进行Cluster处理? [推广有奖]

  • 2关注
  • 15粉丝

已卖:249份资源

教授

63%

还不是VIP/贵宾

-

威望
0
论坛币
49545 个
通用积分
56.0184
学术水平
101 点
热心指数
140 点
信用等级
82 点
经验
652 点
帖子
847
精华
1
在线时间
1254 小时
注册时间
2009-7-23
最后登录
2025-4-18

楼主
yuanhu 在职认证  发表于 2012-10-13 11:30:56 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
  最近看文献发现“为了控制潜在的异方差和序列相关问题,我们对所有回归系数的标准误都在公司层面上进行Cluster处理。”本人才疏学浅不知道如何进行Cluster处理,如果我在公司层面上进行Cluster处理,使用两阶段系统GMM估计,该如何写命令?
      我的命令:xtabond2  A L(1/2).A L(0/2).B C,gmm(L.A)  small twostep
      其中,A为解释变量,B、C为解释变量,Firm为公司代码


二维码

扫码加我 拉你入群

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

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

关键词:Cluster CLU twostep XTABOND Small 如何

本帖被以下文库推荐

沙发
大白菜2012 发表于 2012-10-13 18:09:54
you don't have to worry about "cluster issue" at this point as long as the unit of your panel data is firm.
已有 2 人评分经验 学术水平 热心指数 信用等级 收起 理由
日新少年 + 1 + 1 + 1 精彩帖子
SpencerMeng + 60 观点有启发

总评分: 经验 + 60  学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

元芳,侬怎么L00K?

藤椅
yuanhu 在职认证  发表于 2012-10-14 15:40:16
大白菜2012 发表于 2012-10-13 18:09
you don't have to worry about "cluster issue" at this point as long as the unit of your panel data i ...
多谢,主要是因为审稿专家提出了修改意见,建议我对省级层面进行Cluster处理。请多指教啊
一切才刚刚开始。。。

板凳
大白菜2012 发表于 2012-10-14 21:59:33
yuanhu 发表于 2012-10-14 15:40
多谢,主要是因为审稿专家提出了修改意见,建议我对省级层面进行Cluster处理。请多指教啊
you may try "xtabond2", which has a "cluster" option.

已有 1 人评分学术水平 热心指数 信用等级 收起 理由
yuanhu + 5 + 5 + 5 观点有启发

总评分: 学术水平 + 5  热心指数 + 5  信用等级 + 5   查看全部评分

元芳,侬怎么L00K?

报纸
yuanhu 在职认证  发表于 2012-10-15 11:38:07
大白菜2012 发表于 2012-10-14 21:59
you may try "xtabond2", which has a "cluster" option.
多谢大白菜
一切才刚刚开始。。。

地板
angelatao 发表于 2012-10-16 20:07:58
大白菜2012 发表于 2012-10-14 21:59
you may try "xtabond2", which has a "cluster" option.
请问你哦,我用的是面板数据FE,怎么cluster省 呢?stata显示 :
xtset firm year
xtreg  A B C, fe vce(cluster pro_code)
panels are not nested within clusters
r(498);

谢谢!!
已有 1 人评分学术水平 热心指数 信用等级 收起 理由
日新少年 + 1 + 1 + 1 精彩帖子

总评分: 学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

7
大白菜2012 发表于 2012-10-16 22:11:18
angelatao 发表于 2012-10-16 20:07
请问你哦,我用的是面板数据FE,怎么cluster省 呢?stata显示 :
xtset firm year
xtreg  A B C, fe v ...
你的问题可能是某个firm既在A省,又在B省。(cluster为省)。抑或year

see the explaination below,

Say your panels were states.  You could cluster by regions (groups ofstates), because all observations in one panel (a state) are also all inthe same cluster (a region).  This is what is meant by "panels arenested within clusters".You could cluster by state, because again all observations in one panel(a state) are also in the same cluster (the very same state).But you could not cluster by year, because some observations in onepanel (say State X) might be found in one cluster (say 2001) and someothers from the same panel (again State X) could be found in a differentcluster (say 2002).
----http://www.stata.com/statalist/archive/2008-12/msg00036.html







已有 2 人评分经验 学术水平 热心指数 信用等级 收起 理由
日新少年 + 1 + 1 + 1 精彩帖子
jsg999000 + 60 + 1 + 1 + 1 观点有启发

总评分: 经验 + 60  学术水平 + 2  热心指数 + 2  信用等级 + 2   查看全部评分

元芳,侬怎么L00K?

8
angelatao 发表于 2012-10-18 22:22:32
大白菜2012 发表于 2012-10-16 22:11
你的问题可能是某个firm既在A省,又在B省。(cluster为省)。抑或year

see the explaination below, ...
I'm clear ~~Thank you so much!!!

9
gdczlhd 发表于 2012-10-19 22:47:47
学习了 !!
寻梦?撑一支长篙,向青草更青处漫溯;满载一船星辉,在星辉斑斓里放歌。

10
yuanhu 在职认证  发表于 2012-11-6 11:48:27
大白菜2012 发表于 2012-10-14 21:59
you may try "xtabond2", which has a "cluster" option.
xtabond2中不能附带cluster选项啊
一切才刚刚开始。。。

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

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