evaluate_predictor | R Documentation |
Evaluate component effects or expressions, based on a bru model and one or several states of the latent variables and hyperparameters.
evaluate_predictor(
model,
state,
data,
effects,
predictor,
used = NULL,
format = "auto",
n_pred = NULL
)
state |
A list where each element is a list of named latent state
information, as produced by |
data |
A |
effects |
A list where each element is list of named evaluated effects,
as computed by |
predictor |
Either a formula or expression |
used |
A |
format |
character; determines the storage format of the output. Available options:
Default: "auto" |
n_pred |
integer. If provided, scalar predictor results are expanded to
vectors of length |
For each component, e.g. "name", the state values are available as
name_latent
, and arbitrary evaluation can be done with name_eval(...)
,
see bru_component_eval()
.
A list or matrix is returned, as specified by format
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.