DIC: Deviance information criteria

Description Usage Arguments Details Value References Examples

View source: R/DIC.R

Description

Sort and display the Deviance information criteria of INLA models.

Usage

1
DIC(..., decreasing = FALSE, rnd = 3)

Arguments

...

objects of class inla with computed DIC.

decreasing

logical. If FALSE (default), DIC's are displayed in increasing order.

rnd

integer indicating the number of decimal places to be used.

Details

control.compute = list(dic = TRUE) must be used within inla function.

Value

matrix with models' DIC, mean deviance and effective number of paramenters.

References

Blangiardo, M., Cameletti, M., Baio, G., & Rue, H. (2013). Spatial and spatio-temporal models with R-INLA. Spatial and spatio-temporal epidemiology, 7, 39-55.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(sp)

mod1 <- inla(aan ~ f(id, model = 'bym', graph = sp.adj),
             family = 'poisson', data = spn, E = eaan,
             control.compute = list(dic = TRUE))

mod2 <- inla(aan ~ shvn + f(id, model = 'bym', graph = sp.adj),
             family = 'poisson', data = spn, E = eaan,
             control.compute = list(dic = TRUE))

DIC(mod1, mod2)

oswaldosantos/INLAOutputs documentation built on Dec. 23, 2018, 4:06 p.m.