calculate_dic: Calculate DIC function. Has two arguments: (1) log full...

View source: R/utilities.R

calculate_dicR Documentation

Calculate DIC function. Has two arguments: (1) log full likelihood at thetahat and (2) vector of log-likelihood at the theta samples Calculate the DIC criteria values

Description

Calculate DIC function. Has two arguments: (1) log full likelihood at thetahat and (2) vector of log-likelihood at the theta samples Calculate the DIC criteria values

Usage

calculate_dic(loglikatthetahat, logliks)

Arguments

loglikatthetahat

Log of the likelihood function at theta hat (Bayes). It is a scalar value.

logliks

A vector of log likelihood values at the theta samples

Value

a list containing four values pdic, pdicalt, dic and dicalt


sujit-sahu/bmstdr documentation built on Jan. 30, 2024, 1:40 p.m.