Create and access predictor expression information, keeping track of what latent variables are used, whether the predictor is additive/linear/rowwise.
Usage
new_bru_pred_expr(
x,
...,
used = NULL,
is_rowwise = NULL,
.envir = parent.frame()
)
bru_pred_expr(x, ...)
# S3 method for class 'bru_obs'
bru_pred_expr(x, ...)
# S3 method for class 'bru_obs_list'
bru_pred_expr(x, ...)
# S3 method for class 'bru_info'
bru_pred_expr(x, ...)
# S3 method for class 'bru'
bru_pred_expr(x, ...)
# S3 method for class 'bru_pred_expr'
bru_pred_expr(x, ..., format = "object")
# S3 method for class 'bru_pred_expr'
format(x, ...)
# S3 method for class 'bru_pred_expr'
print(x, ...)Arguments
- x
For creation, a formula or character string giving the predictor expression. If the character string is
".", it is taken to mean an additive expression including all latent variables. For access, an object containing abru_pred_exprobject.- ...
Passed on to submethods
- used
An optional
bru_usedobject, overriding the automated detection. Default:NULL- is_rowwise
logical; whether the predictor can be assumed to use the input data rowwise, so that blockwise evaluation is possible. If
NULL, it needs to be set before use. Default:NULL- .envir
The environment in which to evaluate the expression.
- format
Character; one of
"object"(the default),"text"(plain text),"quo"(anrlangquosure),"expr"(anrlangexpression),"formula"(the original formula input if available, otherwise constructed from the expression),"formula_text"(a text version of the "formula"),"text_raw"(plain text, without substitutingBRU_EXPRESSION), or"resp_text"(plain text of the response side of the formula).
Methods (by class)
bru_pred_expr(bru_obs): Accessor for thebru_pred_exprobject stored inside abru_obsobject.bru_pred_expr(bru_obs_list): Accessor for thebru_pred_exprobjects stored inside abru_obs_listobject.bru_pred_expr(bru_info): Accessor for thebru_pred_exprobject stored inside abru_infoobject.bru_pred_expr(bru): Accessor for thebru_pred_exprobject stored inside abruobject.bru_pred_expr(bru_pred_expr): Access abru_pred_exprobject or convert it to text or expression object.