I am trying to perform mi imputation with bootstrap using following syntax:
1.mi set wide
2. program define myboot, rclass
3.mi register imputed varlist....
4.mi impute mvn varlist....., add( 187)
5. egen country1=group(country)
6. mi xtset country1 year,yearly
7. mi estimate: xtreg varlist.....
8. return scalar b_a = el(e(b_mi),1,1)
9. return scalar b_b = el(e(b_mi),1,2)
10. return scalar b_c = el(e(b_mi),1,3)
11. return scalar b_d = el(e(b_mi),1,4)
12. return scalar b_e = el(e(b_mi),1,5)
13. return scalar b_f = el(e(b_mi),1,6)
14. return scalar b_g = el(e(b_mi),1,7)
15. end
16. set seed 23543
17. bootstrap b_va1=r(b_a) b_var2=r(b_b) b_var3=r(b_c) b_var4=r(b_d) b_var5=r(b_e) b_var6=r(b_f) intercept=r(b_g), reps(2000) : myboot
I am facing following problem after execution:
Bootstrap replications (2000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
xxxxxxxxxxxxxxxxxxxx
insufficient observations to compute bootstrap standard errors
no results will be saved
r(2000);
Please guide
Related Posts with Insufficient observations to compute bootstrap standard errors
RFC (request for comments) on new package "require.ado"Hi all, There is an undocumented ado-file in ftools which I found quite useful for my own work, so …
Workaround for suest restriction on brr [r(322)]?Hi Everyone, I have survey data that uses brr for its error estimation. I would like to compare the…
How to create a new binary variable (0-1) based on some conditions in Stata?input id t1 t2 t3 1 1.5 1.4 1.6 2 1.5 . 1.9 3 . 2.0 1.6 4 . . 2.2 5 1.9 2.1 2 6 1.8 2.0 1.9 7 . . . …
Testing coefficientsDear statalists, I am running 12 different regressions of political risk factors on the amount of M…
Continuous vs binary independent variable in logistic regressionI'm new to statistics and coding so apologize if this is a dumb question but here it goes: I'm runni…
Subscribe to:
Post Comments (Atom)
0 Response to Insufficient observations to compute bootstrap standard errors
Post a Comment