Description Usage Arguments Details Value References Examples
Sort and display the Deviance information criteria of INLA models.
1 |
... |
objects of |
decreasing |
logical. If |
rnd |
integer indicating the number of decimal places to be used. |
control.compute = list(dic = TRUE)
must be used within inla
function.
matrix
with models' DIC, mean deviance and effective number of paramenters.
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.