add_mappers {inlabru} | R Documentation |
Add component input/latent mappers
Description
Add missing mappers between input data and latent variables, based on likelihood data
Equip component(s) with mappers for subcomponents that do not
have predefined mappers. When needed, the data in lhoods
is used to
determine the appropriate mapper(s).
Usage
add_mappers(...)
## S3 method for class 'bru_comp'
add_mappers(component, lhoods, inputs = NULL, lh_data = NULL, ...)
## S3 method for class 'bru_comp_list'
add_mappers(components, lhoods, inputs = NULL, lh_data = NULL, ...)
Arguments
... |
Parameters passed on to other methods |
component |
A component object |
lhoods |
A bru_obs_list object |
inputs |
A precomputed list of inputs, as returned by
|
lh_data |
A list of data object, one for each likelihood in |
components |
A |
Value
A component
object with completed mapper information
Examples
## Not run:
if (interactive() && bru_safe_inla()) {
}
## End(Not run)
[Package inlabru version 2.13.0 Index]