mpm_control
selects the numerical minimizer, method, associated
control parameters, and parameter bounds used by fit_mpm
.
the numerical optimizer used in the fit
if optim = "optim" then the optimization method to be used
can be one of "BFGS", "L-BFGS-B", "Nelder-Mead", "CG", "SANN", or "Brent"
see optim
for details
a list named parameter lower bounds, if NULL then built in
defaults are used when method = "L-BFGS-B"
. Possible parameter names are:
l_sigma
a vector of length 2, log scale; l_rho_p
a scalar, logit scale;
l_D
a scalar, log scale; l_psi
a scalar, log scale;
l_tau
a vector of length 2, log scale; l_rho_o
a scalar, logit scale
a list of named parameter upper bounds, if NULL then built in
defaults are used when method = "L-BFGS-B"
. Possible parameter names are same as lower
integer; report progress during minimization: 0 = silent; 1 = optimizer trace; 2 = parameter trace (default))
control parameters for the chosen optimizer
Returns a list with components
optim
the name of the numerical optimizer as a string, "nlminb" or "optim"
method
optimization method to be used
lower
named list of lower parameter bounds
upper
named list of upper parameter bounds
verbose
level of tracing information to be reported
control
list of control parameters for the optimizer
The optimizer used to minimize the objective function is
selected by the optim
argument. Additional control
parameters specific to the chosen optimizer are specified via the
dots argument. See nlminb
and optim
for available options. Adapted from S. Wotherspoon
https://github.com/SWotherspoon/RWalc/blob/master/R/RWalc.R