Extract Model Comparison Estimates

extract_ic(model_data = NULL, ic = "looic", ncore = 2)

Arguments

model_data

Object returned by 'hBayesDM' model function

ic

Information Criterion. 'looic', 'waic', or 'both'

ncore

Number of cores to use when computing LOOIC

Value

IC Leave-One-Out and/or Watanabe-Akaike information criterion estimates.

Examples

if (FALSE) {
library(hBayesDM)
output = bandit2arm_delta("example", niter = 2000, nwarmup = 1000, nchain = 4, ncore = 1)
# To show the LOOIC model fit estimates (a detailed report; c)
extract_ic(output)
# To show the WAIC model fit estimates
extract_ic(output, ic = "waic")
}