楼主: 百草园Tracy
2697 6

[其他] 2SLS regression如果要two way cluster怎么办?我只能用one dimentional的 [推广有奖]

  • 0关注
  • 0粉丝

硕士生

23%

还不是VIP/贵宾

-

威望
0
论坛币
119 个
通用积分
8.2495
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
2220 点
帖子
106
精华
0
在线时间
91 小时
注册时间
2007-5-18
最后登录
2015-4-12

楼主
百草园Tracy 发表于 2012-9-7 07:33:05 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
用了

ivregress 2sls Y X1 X2 X3 (X4=X5),robust cluster ()

但是发现cluster后面只能加一个变量。

大家有可以用两个变量的code 么?

谢谢了!
二维码

扫码加我 拉你入群

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

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

关键词:regression regressio Cluster regress 2SLS

沙发
aeryyc 发表于 2012-9-8 10:09:29
用 ivreg2,是很好用的ado file。从Stata的指令窗口输入 ssc install ivreg2 就可以安装了。

藤椅
百草园Tracy 发表于 2012-9-8 11:59:29
aeryyc 发表于 2012-9-8 10:09
用 ivreg2,是很好用的ado file。从Stata的指令窗口输入 ssc install ivreg2 就可以安装了。
谢谢LS,已经装了。很好用。就是有些具体功能看得不是特别懂。除了help file外,不知道哪里有更详尽的解释?

板凳
蓝色 发表于 2012-9-8 12:51:20
难道ivreg2的cluster可以加两个变量吗?

报纸
百草园Tracy 发表于 2012-9-9 16:45:34
蓝色 发表于 2012-9-8 12:51
难道ivreg2的cluster可以加两个变量吗?
可以的。

地板
蓝色 发表于 2012-9-9 17:15:33

    cluster(varname) specifies that the observations are independent across groups (clusters) but not
        necessarily independent within groups.  varname specifies to which group each observation belongs;
        e.g., cluster(personid) in data with repeated observations on individuals.  cluster() can be used
        with pweights to produce estimates for unstratified cluster-sampled data, but svy: regress is a
        command especially designed for survey data; see [R] regress.  Specifying cluster() implies robust.

这是帮助,应该是一个变量才对

7
aeryyc 发表于 2012-9-11 22:08:38
蓝色 发表于 2012-9-9 17:15
cluster(varname) specifies that the observations are independent across groups (clusters) but  ...
varname和varlist都可以的。摘自help:
(3) cluster(varname1 varname2) provides 2-way clustered SEs and statistics
(Cameron et al. 2006, Thompson 2009) that are robust to arbitrary
heteroskedasticity and intra-group correlation with respect to 2 non-nested
categories defined by varname1 and varname2.  See below for a detailed
description.

2-way clustering是后加的(http://www.mostlyharmlesseconometrics.com/2010/02/ivreg2-update/),可能要更新ivreg2才会有。

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

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