powered by
A function that calculates DIC and WAIC for model selection
model.selection.criteria(fit, fast_version = TRUE)
Returns the calculated score
an objective output from BCC.multi() function
if fast_verion=TRUE (default), then compute the DIC and WAIC using the first 100 MCMC samples (after burn-in and thinning) . If fast_version=FALSE, then compute the DIC and WAIC using all MCMC samples (after burn-in and thinning)
#import data data(example1) fit.BCC <- example1 res <- model.selection.criteria(fit.BCC, fast_version=TRUE) res
Run the code above in your browser using DataLab