Learn R Programming

inlabru (version 2.11.1)

evaluate_effect_single_state: 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_state(...)

evaluate_effect_multi_state(...)

# S3 method for bru_mapper evaluate_effect_single_state(component, input, state, ..., label = NULL)

# S3 method for comp_simple_list evaluate_effect_single_state(components, input, state, ...)

# S3 method for comp_simple_list evaluate_effect_multi_state(components, input, state, ...)

# S3 method for component_list evaluate_effect_single_state(components, input, state, ...)

# S3 method for component_list evaluate_effect_multi_state(components, input, state, ...)

Value

  • evaluate_effect_single_state.component_list: A list of evaluated component effect values

  • evaluate_effect_multi.comp_simple_list: A list of lists of evaluated component effects, one list for each state

Arguments

...

Optional additional parameters, e.g. inla_f. Normally unused.

component

A bru_mapper, bru_component, comp_simple, or comp_simple_list.

input

Pre-evaluated component input

state

Specification of one (for evaluate_effect_single_state) or several (for evaluate_effect_multi_State) latent variable states:

  • evaluate_effect_single_state.bru_mapper: A vector of the latent component state.

  • evaluate_effect_single_state.*_list: list of named state vectors.

  • evaluate_effect_multi_state.*_list: list of lists of named state vectors.

label

Option label used for any warning messages, specifying the affected component.

Author

Fabian E. Bachl bachlfab@gmail.com and Finn Lindgren finn.lindgren@gmail.com