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

st: Re: set seed & rndpoi


From   "Scott Merryman" <[email protected]>
To   <[email protected]>
Subject   st: Re: set seed & rndpoi
Date   Sat, 30 Aug 2003 08:28:06 -0500

----- Original Message ----- 
From: "Benoit Dulong" <[email protected]>
To: "statalist" <[email protected]>
Sent: Saturday, August 30, 2003 7:34 AM
Subject: st: set seed & rndpoi


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

Hope this helps,
Scott


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