Learn R Programming

inlabru (version 2.3.1)

evaluate_effect_single: Evaluate a component effect

Description

Calculate latent component effects given some data and the state of the component's internal random variables.

Usage

evaluate_effect_single(...)

evaluate_effect_multi(...)

# S3 method for component evaluate_effect_single(component, state, data, A = NULL, ...)

# S3 method for component_list evaluate_effect_single(components, state, data, A = NULL, ...)

# S3 method for component evaluate_effect_multi(component, state, data, A = NULL, ...)

# S3 method for component_list evaluate_effect_multi(components, state, data, A = NULL, ...)

Arguments

...

Unused.

component

A bru_component.

state

Specification of one (for evaluate_effect_single) or several (for evaluate_effect_multi) latent variable states:

  • evaluate_effect_single.component: A vector of the latent component state.

  • evaluate_effect_single.component_list: list of named vectors.

  • evaluate_effect_multi: list of lists of the evaluate_effect_single.component_list type. For evaluate_effect_multi.component, only the label for the given component needs to be included

data

A data.frame or Spatial* object of covariates and/or point locations.

A

A matrix overriding the default projection matrix or matrices (named list of matrices for evaluate_effect.component_list)

Value

  • evaluate_effect_single.component: A numeric vector of the component effect values state.

  • evaluate_effect_single.component_list: A data.frame of evaluated component effect values

  • evaluate_effect_multi.component: A list of numeric vectors of evaluated component effects.

  • evaluate_effect_multi.component_list: A list of data.frames of evaluated component effects, one data.frame for each state