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]

st: RE: RE: Sampling problem


From   Joe Canner <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: RE: RE: Sampling problem
Date   Thu, 27 Mar 2014 16:04:15 +0000

Sorry....this was meant to be a private message to someone else...Too many e-mail windows open at once!

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Joe Canner
Sent: Thursday, March 27, 2014 11:50 AM
To: [email protected]
Subject: st: RE: Sampling problem

Anthony,

Thanks for your help.

Joe

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Daniela Albers
Sent: Wednesday, March 26, 2014 2:34 PM
To: [email protected]
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/

*
*   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