Bookmark and Share

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

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

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

From   Richard Goldstein <>
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-


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:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index