全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
4004 3
2007-07-26

我的 数据是省内随机抽取10个县,每个县随机抽取60户(比如有全县的户名单),在利用调查数据进行回归分析后,想用survey 及cluster来进一步分析检查回归系数的标准差是否有很大变化(或显著性有无变化),具体命令如何写?非常感谢!

二维码

扫码加我 拉你入群

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

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

全部回复
2007-7-26 23:21:00

svyset strata region
svyset pweight gswgt1
svyset psu psuscid

The svyset command is used to specify the design information for analysis. Use the strata
keyword to specify the stratification variable (region), the pweight keyword to specify the
weight variable (gswgt1), and the psu keyword to specify the primary sampling unit
(psuscid).

svyreg pvt_per1 age_kid male biomapa

二维码

扫码加我 拉你入群

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

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

2007-7-27 12:01:00

谢谢你的回复!

1 我的数据是省内随机抽取10个县,每个县随机抽取60户(比如有全县的户名单),在利用调查数据进行回归,首先我用了reg,但不知是否必须用svy来reg,其作用是什么。与直接reg的区别何在?

2 比如我的变量是:countycode(10个县),villcode(60户/县),hhincome(户某项收入),其它控制变量为x1,x2,x3,x4,x5,x6,如果用svy,如何写程序?是否要用two stage来 svy reg?

在窗口操作时,在svyset时,提示为:(hhcode为户编码)

svyset hhcode, strata(villcode) vce(linearized) || villcode, strata(countycode)
Note: stage 1 is sampled with replacement, all further stages will be ignored

pweight: <none>
VCE: linearized
Strata 1: villcode
SU 1: volumecode
FPC 1: <zero>

然后 svy:reg income x1 x2 x3 x4 x5 x6

这个运行结果是否是对的?(也就是Note: stage 1 is sampled with replacement, all further stages will be ignored提示的是否说出现了问题?)

[此贴子已经被作者于2007-7-27 12:06:45编辑过]

二维码

扫码加我 拉你入群

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

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

2007-7-31 14:07:00
请再帮忙解释一下!
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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