dic: DIC

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/dic.R

Description

This function computes the DIC (deviance information criterion) for the estimated model in a fusion object.

Usage

1
dic(x)

Arguments

x

an object of class fusion

Details

The DIC can be easily computed from the MCMC output and is defined as DIC = 2 \overline{D(θ)} - D(\overline{θ}), where \overline{D(θ)} = \frac{1}{M} ∑ \limits_{m=1}^{M} D(θ^{(m)}) is the average posterior deviance and D(\bar{θ}) is the deviance evaluated at \bar{θ} = \frac{1}{M} ∑ \limits_{m=1}^{M} θ^{(m)}. θ^{(m)} are samples from the posterior of the model and M is the number of MCMC iterations.

Value

The DIC for the estimated model in the fusion object.

Author(s)

Daniela Pauger, Magdalena Leitner <effectfusion.jku@gmail.com>

References

Spiegelhalter, D., Best, N., Carlin, B., and van der Linde, A. (2002). Bayesian Measures of Model Complexity and Fit. J. R. Statist. Soc. B, 64(4), 583-639. doi: 10.1111/1467-9868.00353

See Also

effectFusion

Examples

1
## see example for effectFusion

effectFusion documentation built on Oct. 14, 2021, 1:07 a.m.