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 on April 23, 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   Stas Kolenikov <skolenik@gmail.com>
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 13:08:14 -0500

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

On Tue, May 4, 2010 at 12:13 PM, Valerie Orozco
<Valerie.Orozco@toulouse.inra.fr> wrote:
> I use some macros to call the variables into the ml, but they don't change after estimation.
> So "re"running the same ml program should give me the same results each time...
> Thus, I still don't understand what I forgot...
>
>
> -----Message d'origine-----
> From      Maarten buis <maartenbuis@yahoo.co.uk>
> To        statalist@hsphsun2.harvard.edu
> Subject           Re: st: why one ml program doesn't give the same results twice ?
> Date      Tue, 4 May 2010 09:19:01 +0000 (GMT)
>
> --- On Tue, 4/5/10, Valerie Orozco wrote:
>> It seems some "saved" results still remain and affect the
>> second estimation. What did I forget to clear ?
>
> Did you pass some information to the evaluator using global
> macros? If so, you might want to start your program (not
> your evaluator) with -macro drop _all- (or -macro drop S_*-
> if you know that all the global macros you use start with
> S_).
>
> Hope this helps,
> Maarten
>
> -----Message d'origine-----
> De : Valerie Orozco
> Envoyé : mardi 4 mai 2010 11:07
> À : statalist@hsphsun2.harvard.edu
> Objet : why one ml program doesn't give the same results twice ?
>
> Hi,
>
> I wonder why a whole ml program doesn't give the same results twice in one Stata session ?
> That is, doing the following steps doesn't give the same estimation :
>
> 1) Run my ml model and ml maximize
> 2) Clear all  (mat drop _all + ereturn clear + ml clear)
> 3) "Re"run my ml model and ml maximize
>
> It seems some "saved" results still remain and affect the second estimation. What did I forget to clear ?
> (if I close the Stata session and open another one, it gives the same results)
>
> Thank you very much for your help.
>
> valérie
>
> -------------------------------
> Valérie OROZCO
> Toulouse School of Economics (INRA-GREMAQ)
> 21, allée de Brienne
> F-31000 Toulouse, France
>
> MA 101
> +33 5 61 12 85 91
> -------------------------------
>
>
> *
> *   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/
>



-- 
Stas Kolenikov, also found at http://stas.kolenikov.name
Small print: I use this email account for mailing lists only.

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