Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bru_compute_linearisation

Compute inlabru model linearisation information


Description

Compute inlabru model linearisation information

Usage

bru_compute_linearisation(...)

## S3 method for class 'component'
bru_compute_linearisation(
  cmp,
  model,
  lhood_expr,
  data,
  state,
  A,
  effects,
  pred0,
  allow_latent,
  allow_combine,
  eps,
  ...
)

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

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

## S3 method for class '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


inlabru

Bayesian Latent Gaussian Modelling using INLA and Extensions

v2.3.1
GPL (>= 2)
Authors
Finn Lindgren [aut, cre, cph] (<https://orcid.org/0000-0002-5833-2011>, Finn Lindgren continued development of the main code), Fabian E. Bachl [aut, cph] (Fabian Bachl wrote the main code), David L. Borchers [ctb, dtc, cph] (David Borchers wrote code for Gorilla data import and sampling, multiplot tool), Daniel Simpson [ctb, cph] (Daniel Simpson wrote the basic LGCP sampling method), Lindesay Scott-Howard [ctb, dtc, cph] (Lindesay Scott-Howard provided MRSea data import code), Seaton Andy [ctb] (Andy Seaton provided testing and bugfixes)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.