Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[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 <[email protected]>
To
[email protected]
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/