19106 42

[编程问题求助] 求救STATA做Bootstrap方法-需要用到两个回归方程的系数 [推广有奖]

  • 2关注
  • 2粉丝

硕士生

22%

还不是VIP/贵宾

-

威望
0
论坛币
252 个
通用积分
0.0001
学术水平
1 点
热心指数
0 点
信用等级
0 点
经验
1156 点
帖子
93
精华
0
在线时间
113 小时
注册时间
2010-10-30
最后登录
2014-4-22

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
正在学习用STATA做Bootstrap的方法,,如果我想要通过Bootstrap得到一个统计值的BC置信区间,而这个统计值是通过两个回归方程得到的,请问应该如何做?

比如:第一个回归: PM=a0+a1SL+a2SR
         第二个回归:OC=b0+b1SR+b2PM+b3SL+b4SR*SL+b5SR*PM

我想要求a1*b5的BC置信区间,应该如何做?

万分感谢!!!
二维码

扫码加我 拉你入群

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

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

关键词:Bootstrap方法 Bootstrap Bootstra Stata boots 置信区间 如何 统计

回帖推荐

sophiafinn 发表于9楼  查看完整内容

in your case capture drop program bootaaa program bootaaa, rclass sureg ( PM SL SR) (OC SR PM SL SR*SL SR*PM) `if' `in' return scalar aaa = _b[SL]*[OC]_b[SR*PM] end bootstrap r(aaa) , bca reps(5000) nodots: bootaaa
已有 1 人评分经验 论坛币 收起 理由
葫芦娃大王 + 1 + 1 鼓励积极发帖讨论

总评分: 经验 + 1  论坛币 + 1   查看全部评分

Tomorrow is another day!!
请各位高手踊跃帮忙啊~~
Tomorrow is another day!!

使用道具

.....
Tomorrow is another day!!

使用道具

等待回答。。。。
Tomorrow is another day!!

使用道具

帮忙啊~~~
Tomorrow is another day!!

使用道具

求救!!
Tomorrow is another day!!

使用道具

7
sophiafinn 发表于 2013-2-7 08:19:11 |只看作者 |坛友微信交流群

使用道具

8
sophiafinn 发表于 2013-2-7 08:20:44 |只看作者 |坛友微信交流群
capture drop program bootmm
program bootmm, rclass
  syntax [if] [in]
  sureg (read math)(write math)(science read write math) `if' `in'
  return scalar indread  = [read]_b[math]*[science]_b[read]
  return scalar indwrite = [write]_b[math]*[science]_b[write]
  return scalar indtotal = [read]_b[math]*[science]_b[read]+ ///
                           [write]_b[math]*[science]_b[write]
end

bootstrap r(indread) r(indwrite) r(indtotal), bca reps(5000) nodots: bootmm
已有 1 人评分经验 论坛币 收起 理由
葫芦娃大王 + 1 + 1 精彩帖子

总评分: 经验 + 1  论坛币 + 1   查看全部评分

使用道具

9
sophiafinn 发表于 2013-2-7 08:25:12 |只看作者 |坛友微信交流群
in your case

capture drop program bootaaa
program bootaaa, rclass
sureg ( PM SL SR) (OC SR PM SL SR*SL SR*PM) `if' `in'
return scalar aaa  = [PM]_b[SL]*[OC]_b[SR*PM]
end
bootstrap r(aaa) , bca reps(5000) nodots: bootaaa
已有 1 人评分经验 论坛币 学术水平 收起 理由
葫芦娃大王 + 1 + 1 + 1 精彩帖子

总评分: 经验 + 1  论坛币 + 1  学术水平 + 1   查看全部评分

使用道具

sophiafinn 发表于 2013-2-7 08:25
in your case

capture drop program bootaaa
十分感谢!!我自己做了一下,应该就是这个样子了。不过在sureg语句上面需要再加上syntax [if][in] 否则运行结果就会显示insufficient observations to compute jackknife standard errors no results will be saved。

再次感谢!!
已有 1 人评分经验 论坛币 学术水平 收起 理由
葫芦娃大王 + 1 + 1 + 1 精彩帖子

总评分: 经验 + 1  论坛币 + 1  学术水平 + 1   查看全部评分

Tomorrow is another day!!

使用道具

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

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-27 18:19