[statnet_help] Any way to bump out when error detected?

James Moody jmoody77 at duke.edu
Fri Dec 16 07:13:22 PST 2022


Hey Folks -
Hope you are well.
Is there a control parameter or similar that would change the behavior when the model detects an error? I.e. I'm seeing this:

Error in check.objfun.output(out, minimize, d) :
objfun returned value that is NA or NaN
MLE could not be found. Trying Nelder-Mead...

Then it goes on and iterates/searches for a (in my case) hopeless solution, which is *very* slow.

Is there any way to get it to just bump out when this (or similar) happens? Would like to set it up so if it detects anything like this, it just stops trying.

If it were just one case, I would just interrupt it by hand ... but this is embedded in a set of 100s of such models, so running unobserved, and when it hits one of these it slows the process down to a crawl...

Thanks in advance,
Peaceful Thoughts,
Jim


James Moody
Professor of Sociology
Director, Duke Network Analysis Center



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman13.u.washington.edu/pipermail/statnet_help/attachments/20221216/723d72e9/attachment.html>


More information about the statnet_help mailing list