Skip to content
Prev 139245 / 398506 Next

messages from mle function

This is not reproducible, so I am reduced to guessing.

Your loglike() is only defined for positive f, but you have not imposed 
that constraint on your optimization.  Further, if f=5.91e-05 is a typical 
value, your problem is badly conditioned and the finite difference code in 
optim() is likely to step outside the undeclared region of validity.

I suggest that you

- study the help page for optim()
- make use of the control parameters to scale the problem suitably
- either impose the positivity constraint via the L-BFGS-B method, or
   transform f to a suitable scale, e.g. by making log(f) the parameter.
On Tue, 11 Mar 2008, bernardo lagos alvarez wrote:

            
You could look at the many warnings -- they may well tell you the 
underlying problem.