From | Richard Williams <[email protected]> |
To | [email protected] |
Subject | Re: st: reproducibility of rndbin - set seed |
Date | Fri, 26 Mar 2004 19:28:52 -0500 |
At 10:32 PM 3/26/2004 +0000, David Schriger wrote:
Dear StataListers,Type -help version- for details. Basically, there are two random number generators in Stata, the "old" one (Stata 3.1 and earlier) and the "new" one. I believe what is happening is that you are setting the seed for the new version but you need to set it for the old version. So, change your set command to either
The following .do file produces different results for xb each time run.
clear
set seed 4530754024
rndbin 10000 .363328 262
summ xb, d
Since the rndbin command invokes uniform() I thought that setting the seed would make the program produce identical results.
What am I missing? Did seed not exist in version 3.1
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |