Learn R Programming

inlabru (version 2.11.1)

bru_compute_linearisation: Compute inlabru model linearisation information

Description

Compute inlabru model linearisation information

Usage

bru_compute_linearisation(...)

# S3 method for component bru_compute_linearisation( cmp, model, lhood_expr, data, input, state, comp_simple, effects, pred0, used, allow_latent, allow_combine, eps, ... )

# S3 method for bru_like bru_compute_linearisation( lhood, model, data, input, state, comp_simple, eps, ... )

# S3 method for bru_like_list bru_compute_linearisation( lhoods, model, input, state, comp_simple, eps = 0.00001, ... )

# S3 method for bru_model bru_compute_linearisation(model, lhoods, input, state, comp_simple, ...)

Arguments

...

Parameters passed on to other methods

cmp

A bru_component object

model

A bru_model object

lhood_expr

A predictor expression

data

Input data

input

Precomputed component inputs from evaluate_inputs()

state

The state information, as a list of named vectors

comp_simple

Component evaluation information

  • For bru_component: bru_mapper_taylor object

  • For bru_like: A comp_simple_list object for the components in the likelihood

  • For bru_like_list: A comp_simple_list_list object

effects
  • For bru_component: Precomputed effect list for all components involved in the likelihood expression

pred0

Precomputed predictor for the given state

used

A bru_used() object for the predictor expression

allow_latent

logical. If TRUE, the latent state of each component is directly available to the predictor expression, with a _latent suffix.

allow_combine

logical; If TRUE, the predictor expression may involve several rows of the input data to influence the same row.

eps

The finite difference step size

lhood

A bru_like object

lhoods

A bru_like_list object