DIC: Deviance Information Criterion (DIC) for angmcmc objects

View source: R/all_postprodn_fns.R

DICR Documentation

Deviance Information Criterion (DIC) for angmcmc objects

Description

Deviance Information Criterion (DIC) for angmcmc objects

Usage

DIC(object, form = 2, ...)

Arguments

object

angular MCMC object.

form

form of DIC to use. Available choices are 1 and 2 (default). See details.

...

additional model specific arguments to be passed to DIC. For example, int.displ specifies integer dispacement in wnorm and wnorm2 models. See fit_wnormmix and fit_wnorm2mix for more details.

Details

Given a deviance function D(θ) = -2 log(p(y|θ)), and an estimate θ* = (∑ θ_i) / N of the posterior mean E(θ|y), where y denote the data, θ are the unknown parameters of the model, θ_1, ..., θ_N are MCMC samples from the posterior distribution of θ given y and p(y|θ) is the likelihood function, the (form 1 of) Deviance Infomation Criterion (DIC) is defined as

DIC = 2 ( (∑_{s=1}^N D(θ_s)) / N - D(θ*) )

The second form for DIC is given by

DIC = D(θ*) - 4 \hat{var} \log p(y|θ_s)

where for i = 1, ..., n, \hat{var} \log p(y|θ) denotes the estimated variance of the log likelihood based on the realizations θ_1, ..., θ_N.

Like AIC and BIC, DIC is an asymptotic approximation for large samples, and is only valid when the posterior distribution is approximately normal.

Value

Computes the DIC for a given angmcmc object

Examples

# illustration only - more iterations needed for convergence
fit.vmsin.20 <- fit_vmsinmix(tim8, ncomp = 3, n.iter =  20,
                             n.chains = 1)
DIC(fit.vmsin.20)


c7rishi/BAMBI documentation built on March 18, 2023, 6:17 p.m.