Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Re: set seed & rndpoi


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Re: set seed & rndpoi
Date   Sat, 30 Aug 2003 15:35:03 +0100

Scott Merryman replied to Benoit Dulong

> > set seed 261754006
> > rndpoi 10 25
> >
> > and
> >
> > set seed 261754006
> > rndpoi 10 25
> >
> > do not produce the same numbers ?
> >
> > Is this normal ?
> >
> 
> I suspect it is due to the fact that -rndpoi- is in Stata 
> version 3.1.
> 
> If you remove version 3.1 line after the program define 
> statement (and save it
> as rndpoi2) it produces the same results given the same seed.
> 
> Or you could use -genpoisson- which produces the same 
> numbers given the same
> seed.

A similar issue was also raised by Gwen Allardice on 12 August. 

For amplification of Scott's reply, see replies to Gwen 
in the archives. 

Nick 
[email protected] 
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index