This provides a one-row dataframe (`data.table`) with information on the overall deviance, effective number of parameters (when `type` was pD) or optimism (when `type` was popt), and resulting penalised deviance.

# S3 method for dic
glance(x, ...)

Arguments

x

a dic object generated by rjags::dic.samples

...

(optional) additional arguments to pass

Value

a one-row dataframe of summary information of the dic samples

Examples

library(rjags)
#> Linked to JAGS 4.2.0
#> Loaded modules: basemod,bugs
model_dic <- dic.samples(example_jags_model, n.iter = 1000)
#> Error in nchain(model): JAGS model must be recompiled
glance(model_dic)
#> Error in glance(model_dic): object 'model_dic' not found