seinfitR_control: SeinfitR Control

View source: R/seinfitR_control.R

seinfitR_controlR Documentation

SeinfitR Control

Description

Custom Control Function for the SeinfitR Model Fitting

Usage

seinfitR_control(
  ftol = sqrt(.Machine$double.eps),
  ptol = sqrt(.Machine$double.eps),
  gtol = 0,
  diag = list(),
  epsfcn = 0,
  factor = 100,
  maxfev = integer(),
  maxiter = 50,
  nprint = 0,
  trace = FALSE
)

Arguments

ftol

Termination condition for relative reduction in the sum of squares.

ptol

Termination based on relative error between two consecutive iterations.

gtol

Controls the orthogonality between the function vector and the Jacobian.

diag

Multiplicative scale factors for the parameters.

epsfcn

Step size for forward-difference approximation of the Jacobian.

factor

Initial step bound factor.

maxfev

Maximum number of function evaluations.

maxiter

Maximum number of iterations.

nprint

Controls printing of iteration details.

trace

A logical value indicating if a trace of the iteration progress should be printed.

Details

This function returns a list of control parameters for the Levenberg-Marquardt algorithm used by the nlsLM function from the minpack.lm package. These parameters are specifically designed to control the fitting process in the seinfitR function.

Value

A list of control parameters to be used in the nlsLM function during the fitting of the Seinhorst model using seinfitR.


seinfitR documentation built on April 11, 2025, 5:54 p.m.