Wrapper function for optim
that handles bounded and unbounded
optimization methods with appropriate default bounds.
optimize_params(
obj_func,
start,
lower,
upper,
optim_method,
dist,
x,
tol_param,
...
)
Result from optim
.
objective function to minimize.
initial parameter values.
lower bounds for parameters.
upper bounds for parameters.
optimization method.
character string specifying the distribution.
numeric vector of data.
numeric tolerance for parameter bounds.
additional arguments for optim
.