Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: local bootstrapping


From   Benjamin Villena <b_villena@yahoo.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: local bootstrapping
Date   Wed, 3 Oct 2012 11:14:44 -0700 (PDT)

Dear Statalist

I am trying to perform a local bootstrapping procedure that is as follows

- Consider a bandwidth b 
- For every observation x=x0  in the sample, draw a random observation in the interval [x0-b,x0+b]
- Label this draw x0=x0j and estimate a model reg y x0j
- Repeat the procedure M times and compute average estimator, sd, and confidence intervals.

I have tried to program this by using a standard for-loop approachb (going from _n=1 to _n=_N), but its computational execution time is just too large

I'd appreciate a piece of advice on how to do this using mata, which usually means a more efficient procedure

Thank you

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index