Utility functions for bru observation model objects
Usage
bru_obs_inla_family(x, ...)
# S3 method for class 'bru_obs'
bru_obs_inla_family(x, ...)
# S3 method for class 'bru_obs_list'
bru_obs_inla_family(x, ...)
bru_obs_control_family(x, control.family = NULL, ...)
# S3 method for class 'bru_obs'
bru_obs_control_family(x, control.family = NULL, ...)
# S3 method for class 'bru_obs_list'
bru_obs_control_family(x, control.family = NULL, ...)
bru_obs_control_gcpo(x, ...)
# S3 method for class 'bru_obs'
bru_obs_control_gcpo(
x,
index_offset,
index_length = bru_response_size(x),
force_weights,
...
)
# S3 method for class 'bru_obs_list'
bru_obs_control_gcpo(x, control.gcpo = NULL, ...)Arguments
- x
Object of
bru_obsorbru_obs_listtype- ...
Further arguments passed on to the submethods
- control.family
list of INLA
control.familyoptions to override- index_offset
integer; offset to add to indices in
control.gcpo- index_length
integer; length of the response vector for the observation model. Defaults to
bru_response_size(x).- force_weights
logical; if
TRUE, ensure thatcontrol.gcpo$weightsis populated. This is needed if any of the observation models in abru_obs_listhas non-nullcontrol.gcpo$weights.- control.gcpo
list of INLA
control.gcpodefault options
Value
bru_obs_inla_family()returns a string or vector of strings
bru_obs_control_family()returns a list withINLA::control.familyoptions, or a list of such lists, with one element per observation model
bru_obs_control_gcpo()returns a list withINLA::control.gcpooptions, with predictor/response variable indices unified for multi-observation models.