Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: timeout option


From   "Sascha O. Becker" <sascha.becker@gmx.de>
To   statalist@hsphsun2.harvard.edu
Subject   st: timeout option
Date   Tue, 18 Apr 2006 11:43:55 -0700

I often need to use a server when running code (involving bootstraps) for several days. Server RAM and time are scarce resources, obviously. When looping (using global varlists) over several specifications, it often turns out that some of the specifications take (unpredictably) a lot more time than the "average specification" and I would (ex post) rather skip those to go on with the code (and back to the "complicated cases" later). To be concrete, some specifications take 1 or 2 minutes to converge, others 5 to 10 hours.

Is there a way to tell Stata something like: "If this maximum likelihood procedure does not converge in an hour, jump to the next specification.", i.e. is there a way to implement a timeout?

Cheers, Sascha

--

Dr. Sascha O. Becker
Visiting Scholar
Department of Economics
Main Office, Economics Building
University of California, San Diego
9500 Gilman Dr. Dept. 0508
La Jolla, CA 92093-0508, USA
*
* 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index