Dear Statalist,
I'm attempting to bootstrap the standard errors for a specific coefficient in a regression and am seeing a surprising number of failed runs. For instance, in trying to get the "BWTT" coefficient:
. bootstrap _b[BWTT], reps(50): areg fsizeGini BWTT BW YFE*, absorb(CID)
(running areg on estimation sample)
Bootstrap replications (50)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
x...xx.x.x.....xxxx...xxx..xxx.....xxx..xxxxxxx..x 50
On the other hand, running bootstrap by hand produces no failed runs:
forvalues i = 1/50 {
preserve
bsample
quietly: areg fsizeGini BWTT BW YFE*, absorb(CID)
disp(_b[BWTT])
restore
}
-.00125099
-.00105616
-.00158265
-.00156752
-.00127805
-.00112946
-.00168347
-.00132481
... etc. [no failed runs]
For reference, areg fsizeGini BWTT BW YFE*, absorb(CID) vce(bootstrap) runs fine for this example but fails for some other ones I'm considering.
What am I misunderstanding about bootstrap or the Stata code? Thanks!
Cory
Stata version is 11.2
I'm attempting to bootstrap the standard errors for a specific coefficient in a regression and am seeing a surprising number of failed runs. For instance, in trying to get the "BWTT" coefficient:
. bootstrap _b[BWTT], reps(50): areg fsizeGini BWTT BW YFE*, absorb(CID)
(running areg on estimation sample)
Bootstrap replications (50)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
x...xx.x.x.....xxxx...xxx..xxx.....xxx..xxxxxxx..x 50
On the other hand, running bootstrap by hand produces no failed runs:
forvalues i = 1/50 {
preserve
bsample
quietly: areg fsizeGini BWTT BW YFE*, absorb(CID)
disp(_b[BWTT])
restore
}
-.00125099
-.00105616
-.00158265
-.00156752
-.00127805
-.00112946
-.00168347
-.00132481
... etc. [no failed runs]
For reference, areg fsizeGini BWTT BW YFE*, absorb(CID) vce(bootstrap) runs fine for this example but fails for some other ones I'm considering.
What am I misunderstanding about bootstrap or the Stata code? Thanks!
Cory
Stata version is 11.2
Comment