Skip to contents

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 class 'bru_mapper'
evaluate_effect_single_state(component, input, state, ..., label = NULL)

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

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

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

# S3 method for class 'component_list'
evaluate_effect_multi_state(components, input, 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.

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

Author

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