I currently am trying to perform a bootstrap on mi estimate: logistic. However, when I run my code, I get the following error:
Bootstrap replications (20)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
xxxxxxxxxxxxxxxxxxxx
insufficient observations to compute bootstrap standard errors
no results will be saved
My code is as follows:
Code:
mi set flong mi register imputed asd age sex bmi smoke numlevels dosym set seed 54321 capture program drop myboot program myboot, eclass properties(mi) mi impute chained (logit) asd sex smoke (pmm) bmi dosym (ologit) numlevels, augment force add(60) mi estimate: logistic asd age sex bmi smoke numlevels dosym ereturn scalar b_a = el(e(b_mi),1,1) ereturn scalar b_b = el(e(b_mi),1,2) ereturn scalar b_c = el(e(b_mi),1,3) ereturn scalar b_d = el(e(b_mi),1,4) ereturn scalar b_e = el(e(b_mi),1,5) ereturn scalar b_f = el(e(b_mi),1,6) ereturn scalar b_g = el(e(b_mi),1,7) end bootstrap b_age=e(b_a) b_sex=e(b_b) b_bmi=e(b_c) b_smoke=e(b_d) b_lvls=e(b_e) b_dosym=e(b_f) b_int=e(b_g), reps(20) nodrop :myboot
Any advice on how to address this or what else may be the issue? Thanks for your help in advance!
0 Response to Ereturn Scalar on MI Estimate?
Post a Comment