Description Usage Arguments Details Value
View source: R/sample_marginal.R
Get fixed and hyper marginals from inla
.
1 2 3 4 5 6 | tidy_marg_draws_inla(
.result,
n = nrow(.result$marginals.fixed[[1]]),
ren = TRUE,
repl = TRUE
)
|
.result |
|
n |
Sample size. |
ren |
Rename the variable with |
repl |
TRUE: Sampling with replacement; FALSE: no replacement. |
Extract the hyper and fixed marginals from an inla
object and
bind them in a draws_rvars
object. The fixed parameter marginals
are obtained from marginals.fixed
. The hyperparameters are obtained
by marginals.hyperpar
.
draws_rvars
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.