This function is a wrapper to the standard optim optimizer with method = "BFGS".
fn.optim(par0, vY, FUN, LB, UB, ...)It returns a named list with four elements: i) pars: a numeric vector where the estimated parameters are stored, ii) value: a numeric containing the value of the objective function evaluated at its minumum, iii) hessian, a numeric matrix containing the Hessian matrix evaluated at the minimum of objective function, iv) convergence a numeric element indicating the convergence results of optim.
numeric vector of named model coefficients.
numeric vector of data.
A function to optimize.
A vector of lower bounds for the parameters.
A vector of upper bounds for the parameters.
Additional arguments to provide to optim.
Leopoldo Catania
The following control parameters are used for control:
trace = 0
abstol = 1e-8
See the documentation of optim.