RandomEffects: Random effects

Description Usage Arguments Value References Examples

Description

Alternative display of computed random marginals.

Usage

1
RandomEffects(..., expo = TRUE, rnd = 3)

Arguments

...

objects of class inla with random marginals. Only provide more than one object if the number of aggregation units is the same for all random marginals sets among all models (i.e. when the random model (iid, BYM, etc.) is the same for all objects).

expo

logical. If TRUE (default), summary statistics are expoentiated.

rnd

integer indicating the number of decimal places to be used.

Value

vector if only one model with one random effect is evaluated; data.frame or list otherwise.

References

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

Examples

1
2
3
4
5
6
data(sp)

mod1 <- inla(aan ~ f(id, model = 'bym', graph = sp.adj),
             E = eaan,
             family = 'poisson', data = spn)
summary(RandomEffects(mod1))

oswaldosantos/INLAOutputs documentation built on May 24, 2019, 5 p.m.