楼主: wangqiufei
26475 48

[编程问题求助] 如何用stata作bootstrap [推广有奖]

21
jzbd 发表于 2010-7-18 03:46:36
学习一下。

22
hychen98 发表于 2010-7-19 22:49:02
Compute bootstrap estimates
        . bootstrap: regress mpg weight gear foreign

    Same as above command
        . bootstrap _b: regress mpg weight gear foreign

    Change number of replications to 100
        . bootstrap, reps(100): regress mpg weight gear foreign

    Compute acceleration to obtain BCa confidence intervals
        . bootstrap, bca: regress mpg weight gear foreign

    Save results to bsauto file
        . bootstrap, saving(bsauto): regress mpg weight gear foreign

    Run bootstrap on difference in coefficients of weight and gear
        . bootstrap diff=(_b[weight]-_b[gear]): regress mpg weight gear foreign

    bootstrap t statistic using 1000 replications, stratifying on foreign, and saving results in bsauto file
        . bootstrap t=r(t), rep(1000) strata(foreign) saving(bsauto, replace): ttest mpg, by(foreign) unequal

23
coompt 在职认证  发表于 2010-7-29 00:43:03
hui chang gan xie!!!!!

24
happyzch 发表于 2010-7-29 13:47:44
我支持一下。

25
foxfyz 发表于 2010-9-18 20:24:56
谢谢。我正在学习。

26
lhlsunday 发表于 2010-11-16 08:40:03
学习中呢。下来看看!

27
autenlee 发表于 2010-11-23 11:07:30
东西很实用,非常感谢

另外,从STATA help 上搜索 “bootstrap” 也可以看到程序,很实用。

28
jiangyi731215 发表于 2011-10-13 21:23:56
终于学到bootstrap操作,谢谢

29
CHONGruc 发表于 2012-2-26 23:56:55
多谢啦多谢啦~~

30
yaopenghhxxttxs 学生认证  发表于 2012-3-17 00:36:36
谢谢分享

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

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