Bookmark and Share

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]

st: How to get Stata to ignore a non-convergence with ml?


From   "Prado De Castro Alfaiate, Jorge" <jprado@essex.ac.uk>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: How to get Stata to ignore a non-convergence with ml?
Date   Sun, 28 Nov 2010 16:53:44 +0000

Hi fellow statalisters.

I am having a problem with ml.


I wrote a program in which a regression is run several times within a loop, using ml, with
different random initial values.


In the program I tell Stata to do something only if the regression converged, and ignore the
 regression’s results and move on to the next regression if it didn’t converge. The problem
 is that whenever the regression fails to converge Stata stops running and displays the message:



convergence not achieved


r(430);



The difficult option does not solve the problem…

Does anyone know how may I get Stata to ignore the regression’s results everytime it doesn’ converge?


Many thanks.


Jorge


JorgePrado de Castro Alfaiate
PhD student,
Department of Economics,
University of Essex
















*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index