Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Joe Canner <jcanner1@jhmi.edu> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | st: RE: Sampling problem |
Date | Thu, 27 Mar 2014 15:50:21 +0000 |
Anthony, Thanks for your help. Joe -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Daniela Albers Sent: Wednesday, March 26, 2014 2:34 PM To: statalist@hsphsun2.harvard.edu Subject: st: Sampling problem 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/ * * 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/