calculate_dic | R 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
calculate_dic(loglikatthetahat, logliks)
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 |
a list containing four values pdic, pdicalt, dic and dicalt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.