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 at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: Sample: drawing the same "random" sample


From   Richard Goldstein <richgold@ix.netcom.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Sample: drawing the same "random" sample
Date   Tue, 12 Apr 2011 14:18:20 -0400

Stata has a very good pseudo-random-number generator, but it uses a
built-in seed and thus will always exhibit the behavior you noticed

for more on this, start with -help seed-

Rich

On 4/12/11 2:02 PM, Laurie Molina wrote:
> Hi all,
> I hope you can help me with the following questions:
> I am running random samples in stata 9 using the command sample.
> If i close the program, open the database again and then run the
> sample again, the "random" sample is the same as the first time i gave
> stata the instruction.
> Is it really a random sample? Is it ok to use it to make inference in
> to the population? What is the algorith used to draw the sample?
> Thank you very much in advance, as always!
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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