| inla-control {INLA} | R Documentation |
inla control argument handlers
Description
Methods for controlling inla() and f() control arguments
Usage
ctrl_class(x)
ctrl_type(x)
## Default S3 method:
ctrl_type(x)
## S3 method for class 'character'
ctrl_type(x)
ctrl_check(x, the_type, default = NULL)
ctrl_object(x, the_type, data = NULL, check = TRUE)
ctrl_default(x)
## S3 method for class 'character'
ctrl_default(x)
## S3 method for class 'inla_ctrl_object'
ctrl_default(x)
ctrl_update(x, ...)
## S3 method for class 'inla_ctrl_object'
ctrl_update(x, ..., default = NULL)
## S3 method for class 'ctrl_family'
ctrl_update(x, ..., model)
## S3 method for class 'ctrl_mix'
ctrl_update(x, ...)
## S3 method for class 'ctrl_link'
ctrl_update(x, ...)
## S3 method for class 'ctrl_lp_scale'
ctrl_update(x, ...)
## S3 method for class 'ctrl_predictor'
ctrl_update(x, ..., control.compute, control.inla)
## S3 method for class 'ctrl_compute'
ctrl_update(x, ...)
## S3 method for class 'ctrl_group'
ctrl_update(x, ...)
## S3 method for class 'ctrl_scopy'
ctrl_update(x, ...)
## S3 method for class 'ctrl_hazard'
ctrl_update(x, ...)
## S3 method for class 'ctrl_mode'
ctrl_update(x, ...)
Arguments
default |
A default object of matching |
data |
An optional data object ( |
check |
logical; If |
model |
character; a model specifier |
control.compute |
A |
control.inla |
A |
Functions
-
ctrl_type(): Returns the type-part of the control class name, i.e. without the "ctrl_" prefix. -
ctrl_check(): Checks that the elements are named and match the available ones in the corresponding default control object. -
ctrl_object(): Construct a control object and check that it's compatible with the corresponding defaults. -
ctrl_update(inla_ctrl_object): Merges thexobject with the defaults for control typectrl_type(x). Recursively handlescontrol.*elements, withNULLdefaults also being replaced by their corresponding defaults before merging. -
ctrl_update(ctrl_predictor): Requirescontrol.computeandcontrol.inlato be provided, in order to determine ifcomputeneeds to be forced toTRUE. To ignore, usectrl_update(x, control.compute = list(), control.inla = list()). -
ctrl_update(ctrl_compute): IfresidualsisTRUE, also setsdic = TRUE.