Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Drawing sample using bootstrap


From   Melaku Fekadu <[email protected]>
To   [email protected]
Subject   Re: st: Drawing sample using bootstrap
Date   Wed, 17 Oct 2012 21:58:46 +0200

Thanks Fernando. It did exactly what I wanted.
Melaku

On Tue, Oct 16, 2012 at 8:16 PM, Fernando Rios Avila <[email protected]> wrote:
> perhaps something like:
> set seed 101
> forvalues i=1/10 {
> preserve
> bsample
> save bootsample`i', replace
> restore
> }
> HTH
> On Tue, Oct 16, 2012 at 1:15 PM, Melaku Fekadu <[email protected]> wrote:
>> Dear Statalisters,
>> I want to draw 10 samples with replacement from my existing data and
>> keep or save them. Does bootstrap do that? My objective is just to
>> obtain 10 samples drawn from my data and save them. My data has 100
>> individuals and 5 variables. How do I do so in Stata?
>> Thanks,
>> Melaku
>> *
>> *   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/
> *
> *   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/
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index