tidy_draws_inla: Get a sample of posterior draws from a, 'inla' fit as a...

Description Usage Arguments Details Value See Also

View source: R/sample_posterior.R

Description

Get a sample of posterior draws from a, inla fit as a tibble. Using the data from INLA::inla.posterior.sample.

Usage

1
tidy_draws_inla(.result, n = 1L, ren = TRUE)

Arguments

.result

inla object.

n

Sample size.

ren

TRUE:rename variables to brms naming convention; FALSE: Keep INLA naming convention.

Details

Create list where the latent and hyper parameters from INLA::inla.posterior.sample are joined together in one vector per sample. Then each vector from the n samples are put together in a draws_rvars object.

Value

draws_rvars object.

See Also

INLA::inla.posterior.sample eflINLA::posterior_samples_sel


FrankLef/eflINLA documentation built on Dec. 17, 2021, 8:30 p.m.