extract_ic {hBayesDM}R Documentation

Extract Model Comparison Estimates

Description

Extract Model Comparison Estimates

Usage

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

## 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")

## End(Not run)


[Package hBayesDM version 1.2.1 Index]