全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
2652 6
2012-09-07
用了

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

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

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

谢谢了!
二维码

扫码加我 拉你入群

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

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

全部回复
2012-9-8 10:09:29
用 ivreg2,是很好用的ado file。从Stata的指令窗口输入 ssc install ivreg2 就可以安装了。
二维码

扫码加我 拉你入群

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

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

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可以加两个变量吗?
二维码

扫码加我 拉你入群

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

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

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.

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

扫码加我 拉你入群

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

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

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

说点什么

分享

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