<
josef...@gmail.com> wrote:
> "Inverting hessian failed," means that the calculated Hessian, second
> derivative of the loglikelihood, is not positive definite.
> One possibility is to check the optimization, try different starting values
> and different optimization methods, and see whether it's possible to
> converge to a solution with positive hessian.
You should use an optimizer that does not require an exact or positive
definite Hessian. Trust-region optimization and quasi-Newton methods (e.g.
BFGS) are good alternatives to Newton-Raphson. Even good old Nelder-Mead
simplex method might be preferable (yes it is slower, but the fact that is
nearly always succeeds more than makes up for the speed penalty).
Sturla