Learn R Programming

durmod (version 1.1-4)

mphcrm.control: Control parameters for mphcrm

Description

Modify the default estimation parameters for mphcrm.

Usage

mphcrm.control(...)

Arguments

...

parameters that can be adjusted. See the vignette("whatmph") for more details.

  • threads. integer. The number of threads to use. Defaults to getOption('durmod.threads').

  • iters. integer. How many iterations should we maximally run. Defaults to 50.

  • ll.improve. numeric. How much must the log-likelihood improve from the last iteration before termination. Defaults to 0.001.

  • newpoint.maxtime. numeric. For how many seconds should a global search for a new point improving the likelihood be conducted before we continue with the best we have found. Defaults to 120.

  • callback. A user-specified function(fromwhere, opt, dataset, control, ...) which is called after each optimization step. It can be used to report what is happening, check whatever it wants, and optionally stop the estimation by calling stop(). In this case, mphcrm() will return with the most recently estimated set of parameters. See the help on mphcrm.callback for information on the argument.

  • trap.interrupt. logical. Should interrupts be trapped so that mphcrm returns gracefully? In this case the program will continue. Defaults to interactive().

  • cluster. Cluster specification from package parallel or snow.

Value

List of control parameters suitable for the control argument of mphcrm.