Learn R Programming

dynfrail (version 0.5.2)

dynfrail_control: Control parameters for dynfrail

Description

Control parameters for dynfrail

Usage

dynfrail_control(nlm_control = list(stepmax = 1), inner_control = list(eps =
  1e-04, maxit = 100, verbose = FALSE, lik_tol = 1))

Arguments

nlm_control

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.

See Also

dynfrail, dynfrail_dist

Examples

Run this code
# 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))

# }

Run the code above in your browser using DataLab