Methods for inlabru component lists
Constructor methods for inlabru component lists. Syntax details are given in
component()
.
component_list(...) ## S3 method for class 'formula' component_list(object, lhoods = NULL, envir = NULL, ...) ## S3 method for class 'list' component_list(object, lhoods = NULL, envir = NULL, ...) ## S3 method for class 'component_list' x[i]
... |
Parameters passed on to other methods |
object |
The object to operate on |
lhoods |
A |
envir |
An evaluation environment to override the evaluation environment |
x |
|
i |
indices specifying elements to extract |
component_list.formula
: Convert a component formula
into a component_list
object
component_list.list
: Combine a list of components and/or component formulas
into a component_list
object
Fabian E. Bachl bachlfab@gmail.com and Finn Lindgren finn.lindgren@gmail.com
Other component constructors:
component()
# As an example, let us create a linear component. Here, the component is # called "myLinearEffectOfX" while the covariate the component acts on is # called "x". Note that a list of components is returned because the # formula may define multiple components eff <- component_list(~ myLinearEffectOfX(main = x, model = "linear")) summary(eff[[1]]) # Equivalent shortcuts: eff <- component_list(~ myLinearEffectOfX(x, model = "linear")) eff <- component_list(~ myLinearEffectOfX(x)) # Individual component eff <- component("myLinearEffectOfX", main = x, model = "linear")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.