Skip to content
Prev 148019 / 398500 Next

L-BFGS-B needs finite values of 'fn'

Another question related with the same code:
The above code could terminate normally. However, if ``beta'' set to 0, 
then the following error message will appear:

Error in optim(start, f, method = method, hessian = TRUE, ...) :
   initial value in 'vmmin' is not finite

I have learn that "drc" package could deal with this situation, it set 
the first observation to control, however, I don't find the way to 
implement it in the source code, for the code is too complex to me.

Any suggestion? Thanks in advance!

Jinsong