iinla {inlabru} | R Documentation |
Iterated INLA
Description
This is an internal wrapper for iterated runs of INLA::inla
.
For nonlinear models, a linearisation is done with
bru_compute_linearisation
, with a line search method between each
iteration. The INLA::inla.stack
information is setup by bru_make_stack()
.
Usage
iinla(model, lhoods, initial = NULL, options)
Arguments
model |
A bru_model object |
lhoods |
A list of likelihood objects from |
initial |
A previous |
options |
A |
Value
An iinla
object that inherits from INLA::inla
, with an
added field bru_iinla
with elements
- log
The diagnostic log messages produced by the run
- states
The list of linearisation points, one for each inla run
- inla_stack
The
inla.stack
object from the final inla run- track
A list of convergence tracking vectors
If an inla run is aborted by an error, the returned object also contains
an element error
with the error object.