delay_fit {incubate}R Documentation

Fit optimal parameters according to the objective function (either MPSE or MLE-based).

Description

The objective function carries the given data in its environment and it is to be minimized. R's standard routine stats::optim does the numerical optimization, using numerical derivatives. or the analytical solution is returned directly if available.

Usage

delay_fit(objFun, optim_args = NULL, verbose = 0)

Arguments

objFun

objective function to be minimized

optim_args

list of own arguments for optimization. If NULL it uses the default optim arguments associated to the objective function.

verbose

integer that indicates the level of verboseness. Default 0 is quiet.

Value

optimization object including a named parameter vector or NULL in case of errors during optimization


[Package incubate version 1.3.0 Index]