Extract Model Comparison Estimates
extract_ic(model_data = NULL, ic = "looic", ncore = 2)
Object returned by 'hBayesDM'
model function
Information Criterion. 'looic', 'waic', or 'both'
Number of cores to use when computing LOOIC
IC Leave-One-Out and/or Watanabe-Akaike information criterion estimates.
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")
}