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]
st: Sampling problem
From
Daniela Albers <[email protected]>
To
[email protected]
Subject
st: Sampling problem
Date
Wed, 26 Mar 2014 15:34:01 -0300
Hello all,
I am kind of new in stata, so hope someone can help me.
I have a data with 10.000 numbers generate with runiform() command. And I need to generate 100 samples (n=379) of the data (with replacement) and save this 100 samples (of 379 numbers in them) in a new data so that afterwords I can work with it.
I have been using:
preserve
bsample 379
saving the new sample
restore
(to do afterwards a merge of the 100 new datas)
But it seems it takes for ever but I hope there is an easier way to it.
Can someone help me
Thanks,
DANIELA
*
* 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/