Description Usage Arguments Details Value See Also
View source: R/predict_posterior.R
Get predictors from samples obtained with INLA::inla.posterior.sample
.
1 | predicted_draws_inla(.result, new_pos = integer(), n = 1L, sel = NULL)
|
.result |
|
new_pos |
Integer of positions of |
n |
Sample size. |
sel |
List used for selection by
|
Extract posterior predictors (as opposed to the ones from marginals) from
an inla object, add variability to them using the standard deviation shown
in each sample INLA::inla.posterior.sample
of size n
and
output these randomized predictors as posterior::draws_vars
objects.
When creating the input inla object, use eflINLA::augment_inla
to
ensure the data is formatted the right way and inla arguments are properly
set.
draws_rvars
object.
INLA::inla.posterior.sample eflINLA::augment_inla
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.