Learn R Programming

hBayesDM (version 0.4.0)

extract_ic: Extract Model Comparison Estimates

Description

Extract Model Comparison Estimates

Usage

extract_ic(modelData = NULL, ic = "looic", core = 2)

Arguments

modelData
Object returned by 'hBayesDM' model function
ic
Information Criterion. 'looic', 'waic', or 'both'
core
Number of cores to use for leave-one-out estimation

Value

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

Examples

Run this code
## Not run: ------------------------------------
# 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")
## ---------------------------------------------

Run the code above in your browser using DataLab