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().
Arguments
- model
 A bru_model object
- lhoods
 A list of likelihood objects from
bru_obs()- inputs
 Optional pre-computed list of per-likelihood component evaluations, from
bru_input.bru_obs_list().- initial
 A previous
bruresult or a list of named latent variable initial states (missing elements are set to zero), to be used as starting point, orNULL. If non-null, overridesoptions$bru_initial- options
 A
bru_optionsobject.
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.stackobject 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.