Learn R Programming

BGVAR (version 2.5.8)

dic: Deviance Information Criterion

Description

Computes the Deviance information criterion for an object bgvar.

Usage

dic(object, ...)

# S3 method for bgvar dic(object, ...)

Value

Returns a numeric value with the corresponding DIC.

Arguments

object

An object of class bgvar.

...

Additional arguments.

Author

Maximilian Boeck

References

Spiegelhalter, D. J. and Best, N. G., Carlin, B. P. and Linde, A. (2002) Bayesian measures of model complexity and fit. Journal of the Royal Statistical Society, Series B, Vol. 64(4), pp. 583-639.

See Also

bgvar for estimation of a bgvar object.

Examples

Run this code
# \donttest{
library(BGVAR)
data(testdata)
model.mn <- bgvar(Data=testdata,W=W.test,plag=1,draws=100,burnin=100,prior="MN")
dic(model.mn)
# }

Run the code above in your browser using DataLab