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

Re: st: Stata vs. SAS (random number generation)


From   Joseph Coveney <[email protected]>
To   Statalist <[email protected]>
Subject   Re: st: Stata vs. SAS (random number generation)
Date   Thu, 07 Apr 2005 10:05:02 +0900

Joao Pedro Wagner de Azevedo Wrote (excerpted):

I would like to know if it is possible, and if so how, to have Stata and SAS
generating the same sequence of random numbers. 

--------------------------------------------------------------------------------

Given a seed, if you know the package's algorithm, shouldn't it be possible to 
reproduce its sequence of pseudorandom numbers?  

Stata reveals its algorithm in its manuals.  SAS probably does the same in 
sufficient detail somewhere in its documentation to be able to reproduce its 
sequences.

Joseph Coveney


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