evaluate_model | R Documentation |
Evaluate or sample from a posterior result given a model and locations
evaluate_model(
model,
state,
data = NULL,
input = NULL,
comp_simple = NULL,
predictor = NULL,
format = NULL,
used = NULL,
n_pred = NULL,
...
)
evaluate_state(
model,
result,
property = "mode",
n = 1,
seed = 0L,
num.threads = NULL,
internal_hyperpar = FALSE,
...
)
model |
A bru model |
state |
list of state lists, as generated by |
data |
A |
input |
Precomputed inputs list for the components |
comp_simple |
Precomputed |
predictor |
A formula or an expression to be evaluated given the
posterior or for each sample thereof. The default ( |
format |
character; determines the storage format of predictor output. Available options:
|
used |
A |
n_pred |
integer. If provided, scalar predictor results are expanded to
vectors of length |
... |
Additional arguments passed on to |
result |
A |
property |
Property of the model components to obtain value from.
Default: "mode". Other options are "mean", "0.025quant", "0.975quant",
"sd" and "sample". In case of "sample" you will obtain samples from the
posterior (see |
n |
Number of samples to draw. |
seed |
If seed != 0L, the random seed |
num.threads |
Specification of desired number of threads for parallel computations. Default NULL, leaves it up to INLA. When seed != 0, overridden to "1:1" |
internal_hyperpar |
logical; If |
evaluate_model
is a wrapper to evaluate model state, A-matrices,
effects, and predictor, all in one call.
evaluate_state
evaluates model state properties or samples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.