good.num.limit = c(.Machine$double.xmin, .Machine$double.xmax)^(1/3)
Then I constrained certain positive numbers to lie within these bounds, thereby avoiding 0 and Inf.
Then I tested the result using method = "Nelder-Mead", "BFGS", and "CG". For my particular installation, for some unknown reason, Nelder-Mead bombed S-Plus, BFGS returned a nonsense answer, but CG was sensible. Just a few minutes ago, I restarted my (several hour) job. I think it should be more likely to finish now.
hope this helps.
spencer gravesWerner Bier wrote:
Dear all,
I am using the optim() function which it stops with the following error messagge:
error in optim(...) non-finite finite-difference value
I was wondering if somebody might suggest me a way to fix it please.
Thanks in advance to all of you.
Kind regards,
Tom
__________________________________________________
[[alternative HTML version deleted]]
______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
