Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: RE: st :why one ml program doesn't give the same results twice ?


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: st :why one ml program doesn't give the same results twice ?
Date   Tue, 4 May 2010 12:28:26 -0700 (PDT)

--- Stas Kolenikov
> Theoretically, it is possible that -ml search- produced
> random starting values that led to a different local maximum.

--- On Tue, 4/5/10, Valerie Orozco wrote:
> The problem is that closing Stata,
> opening another Session, and running gives the same
> results.
> The difference appears when running after a previous
> estimation (of same ml program)
 
That does not preclude Stas's suggestion: the seed is reset
as you start a new session. For example type -di runiform()-
close stata, start a new session, and type -di runiform()-
again, you'll see that both give the same results.

So, to test this you'll need to start with 
set seed 12345
set sortseed 12345
macro drop _all
<your ml program>

set seed 12345
set sortseed 12345
macro drop _all
<your ml program>

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------


      

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index