A list of named arguments to be sent to nlm for the outer optimization.
inner_control
A list of parameters for the inner optimization. See details.
Value
An object of the type dynfrail_control.
Details
The nlm_control argument should not overalp with hessian, f or p.
The inner_control argument should be a list with the following items:
eps A criterion for convergence of the EM algorithm (difference between two consecutive values of the log-likelihood)
maxit The maximum number of iterations between the E step and the M step
verbose Logical, whether details of the optimization should be printed
lik_tol For values higher than this, the algorithm returns a warning when the log-likelihood decreases between EM steps. Technically, this should not happen, but
if the parameter \(\theta\) is somewhere really far from the maximum, numerical problems might lead in very small likelihood decreases.
The starting value of the outer optimization may be set in the dynfrail_dist() argument.
# NOT RUN {dynfrail_control()
# this stops each EM (inner maximization) after 10 iterations, event if it did not# reach the maximum.dynfrail_control(inner_control = list(maxit = 10))
# }