Prec2SD: Standard deviation of hyperparameters

Description Usage Arguments Value References Examples

View source: R/Prec2SD.R

Description

Transformation of precision to standard deviation of hyperparameters.

Usage

1
2
Prec2SD(model, summarise = TRUE, sd = TRUE, quantiles = c(0.025, 0.975),
  rnd = 3)

Arguments

model

object of class inla.

summarise

logical. If TRUE (default), the posterior mean of the standard deviation is returned.

quantiles

numeric vector to indicate the quantiles to be computed.

rnd

integer indicating the number of decimal places to be used.

Value

matrix with summary statistics.

References

Blangiardo, Marta, and Michela Cameletti. Spatial and Spatio-temporal Bayesian Models with R-INLA. John Wiley & Sons, 2015.

Examples

1
2
3
4
data(sp)
mod <- inla(aan ~ shvn + f(id, model = 'bym', graph = sp.adj),
            E = eaan, family = 'poisson', data = spn)
Prec2SD(mod)

oswaldosantos/INLAOutputs documentation built on Oct. 3, 2018, 8:24 p.m.