Learn R Programming

inlabru (version 2.3.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, state, A, effects, pred0, allow_latent, allow_combine, eps, ... )

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

# S3 method for bru_like_list bru_compute_linearisation(lhoods, model, state, A, eps = 1e-05, ...)

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

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

state

The state information, as a list of named vectors

A

A-matrix information:

  • For bru_component: Precomputed A-matrix for the component

  • For bru_like: A list of named A-matrices for the components in the likelihood for the component

  • For bru_like_list: A list, where each element is a list of named A-matrices.

effects
  • For bru_component: Precomputed effect data.frame for all components involved in the likelihood expression

pred0

Precomputed predictor for the given state

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