model.selection.criteria {BCClong}R Documentation

Model selection

Description

A function that calculates DIC and WAIC for model selection

Usage

model.selection.criteria(fit, fast_version = 1)

Arguments

fit

an objective output from BCC.multi() function

fast_version

if fast_verion=1 (default), then compute the DIC and WAIC using the first 100 MCMC samples (after burn-in and thinning) . If fast_version=0, then compute the DIC and WAIC using all MCMC samples (after burn-in and thinning)

Value

Returns the calculated score

Examples

#import data
filePath <- system.file("extdata", "example1.rds", package = "BCClong")
fit.BCC <- readRDS(filePath)
res <- model.selection.criteria(fit.BCC, fast_version=1)
res


[Package BCClong version 1.0.2 Index]