Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to make bootstrap faster

    Hi,
    I am using a code similar to the below one but my code is too slow possibly because I have a more complicated model. Is there any way to make the below bootstrap faster?
    Thanks,
    NM


    set more off use http://www.stata-press.com/data/r14/nhanes2f, clear svyset psuid [pweight=finalwgt], strata(stratid) psu(psuid) capture program drop savemargins program savemargins, rclass svy, subpop(race): mlogit health i.agegrp##c.zinc margins, at(zinc=(0 10)) predict(outcome(1)) post end bootstrap _b, saving(margins, replace) reps(200): savemargins
    Last edited by Nader Mehri; 20 Apr 2021, 11:12.
Working...
X