Skip to content
Prev 132609 / 398506 Next

NaN as a parameter in NLMINB optimization

On 21/12/2007 12:07 AM, Rebecca Sela wrote:
I would say it's a bug. I can't tell if it's a bug in your code or in 
the nlminb code, but even if it's a problem with your code, it would be 
nice if nlminb could recognize it and give a error report rather than 
passing garbage to your function.

Can you put together a small enough example to post here?  If not, you 
could send me the full example, but I may not get to it for a couple of 
weeks.  In either case, try to make sure the error occurs on every run 
by using set.seed() and/or a fixed dataset.  If the problem is 
intermittent even with that, please let us know.

Duncan Murdoch