View source: R/modelSelection.R
model.selection.criteria | R Documentation |
A function that calculates DIC and WAIC for model selection
model.selection.criteria(fit, fast_version = TRUE)
fit |
an objective output from BCC.multi() function |
fast_version |
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) |
Returns the calculated score
#import data
data(example1)
fit.BCC <- example1
res <- model.selection.criteria(fit.BCC, fast_version=TRUE)
res
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.