Code:
doedit https://gist.githubusercontent.com/...
Code:
do https://gist.githubusercontent.com/...
sysuse auto tempfile tjk tbs qui bootstrap, saving(`tbs', replace): reg price mpg i.foreign use `tbs' sum sysuse auto qui bootstrap, saving(`tbs', replace): reg price mpg foreign use `tbs' sum sysuse auto qui jackknife, saving(`tjk', replace): reg price mpg i.foreign use `tjk' sum sysuse auto qui jackknife, saving(`tjk', replace): reg price mpg foreign use `tjk' sum
. sysuse auto (1978 automobile data) . tempfile tjk tbs . . qui bootstrap, saving(`tbs', replace): reg price mpg i.foreign . use `tbs' (bootstrap: regress) . sum Variable | Obs Mean Std. dev. Min Max -------------+--------------------------------------------------------- _b_mpg | 50 -305.208 68.45507 -469.7973 -139.6592 _bs_2 | 50 0 0 0 0 _bs_3 | 50 1836.401 600.9441 406.5179 3537.573 _b_cons | 50 12093.28 1641.614 7933.012 15650.12 . sysuse auto (1978 automobile data) . qui bootstrap, saving(`tbs', replace): reg price mpg foreign . use `tbs' (bootstrap: regress) . sum Variable | Obs Mean Std. dev. Min Max -------------+--------------------------------------------------------- _b_mpg | 50 -297.9724 67.2555 -444.5148 -157.0371 _b_foreign | 50 1775.099 577.1984 110.2294 2845.707 _b_cons | 50 11983 1453.518 8555.752 14720.93 . . sysuse auto (1978 automobile data) . qui jackknife, saving(`tjk', replace): reg price mpg i.foreign . use `tjk' (jackknife: regress) . sum Variable | Obs Mean Std. dev. Min Max -------------+--------------------------------------------------------- _b_mpg | 74 -294.2683 7.639854 -330.1661 -273.4005 _jk_2 | 74 0 0 0 0 _jk_3 | 74 1767.329 74.31322 1494.767 1996.184 _b_cons | 74 11906.63 169.9526 11382.11 12618.6 . sysuse auto (1978 automobile data) . qui jackknife, saving(`tjk', replace): reg price mpg foreign . use `tjk' (jackknife: regress) . sum Variable | Obs Mean Std. dev. Min Max -------------+--------------------------------------------------------- _b_mpg | 74 -294.2683 7.639854 -330.1661 -273.4005 _b_foreign | 74 1767.329 74.31322 1494.767 1996.184 _b_cons | 74 11906.63 169.9526 11382.11 12618.6 . . . . end of do-file
Comment