tidy_marg_draws_inla: Get fixed and hyper marginals from 'inla'

Description Usage Arguments Details Value

View source: R/sample_marginal.R

Description

Get fixed and hyper marginals from inla.

Usage

1
2
3
4
5
6
tidy_marg_draws_inla(
  .result,
  n = nrow(.result$marginals.fixed[[1]]),
  ren = TRUE,
  repl = TRUE
)

Arguments

.result

inla object.

n

Sample size.

ren

Rename the variable with rename_brms.

repl

TRUE: Sampling with replacement; FALSE: no replacement.

Details

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.

Value

draws_rvars object.


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