opt_tryFit: Performs non-linear least squares parameter optimisation,...

Description Usage Arguments Value

View source: R/opt_tryFit.R

Description

Performs non-linear least squares parameter optimisation, dealing with common convergence errors.

Usage

1
opt_tryFit(fitFunc, initParams, control, recCount = 0, maxRecs = 5, ...)

Arguments

fitFunc

optimisation routine to use

initParams

initial guess parameter values for optimiser to improve upon

control

list of control parameters to be passed to nls

recCount

the number of recursive calls of this function made so far

maxRecs

a limit on the number of recursive calls that can be made

...

unmodified parameters (incl. isNonDim, lower, upper, tColStr, plotSum, N0, modelFuncSus, modelFuncRes, args(optional) and residFunc) to be passed to opt_paramsNLS()

Value

non-linear least squares (nls) object


SharpRT/NFRR_Philippines documentation built on Dec. 18, 2021, 1:05 p.m.