Calculate latent component effects given some data and the state of the component's internal random variables.
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, ...)
evaluate_effect_single.component
: A numeric vector of the component effect values
state.
evaluate_effect_single.component_list
: A list 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 lists of
evaluated component effects, one list for each state
Unused.
A bru_component
.
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
A data.frame
or Spatial* object of covariates and/or point locations.
A matrix overriding the default projection matrix or matrices
(named list of matrices for evaluate_effect.component_list
)
Fabian E. Bachl bachlfab@gmail.com and Finn Lindgren finn.lindgren@gmail.com