Skip to content

Using MLE Method to Estimate Regression Coefficients

1 message · John C Nash

#
The error msg puts it quite clearly -- the initial parameters 1,1,1,1 are inadmissible for
your function. You need to have valid initial parameters for the variable metric method
(option BFGS).

This is one of the main problems users have with any optimization method. It is ALWAYS a
good idea to actually evaluate your function outside of the optimizer i.e., simply put in
the initial parameters and find out what function value you get.

It should also be noted (as the package optimx does) that the VM and CG based methods
really don't do very well without analytic gradients.

JN
On 06/15/2011 06:00 AM, r-help-request at r-project.org wrote:
[snip]