Learn R Programming

pCODE (version 0.9.4)

nls_optimize: Optimizer for non-linear least square problems

Description

Obtain the solution to minimize the sum of squared errors of the defined function fun by levenberg-marquardt method. Adapted from PRACMA package.

Usage

nls_optimize(fun, x0, ..., options,verbal)

Value

par

The solution to the non-linear least square problem, the same size as x0

Arguments

fun

The function returns the vector of weighted residuals.

x0

The initial value for optimization.

...

Parameters to be passed for fun

options

Additional optimization controls.

verbal

Default = 1 for printing iteration and other for suppressing