nls_optimize: Optimizer for non-linear least square problems

Description Usage Arguments Value

View source: R/PCODE.R

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

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

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

Value

par

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


pCODE documentation built on Jan. 11, 2020, 9:30 a.m.