Learn R Programming

hBayesDM (version 0.2.3.3)

printFit: Print model-fits (mean LOOIC and WAIC values) of hBayesDM Models

Description

Print model-fits (mean LOOIC and WAIC values) of hBayesDM Models

Usage

printFit(..., ncore = 2, roundTo = 3)

Arguments

...
Model objects output by hBayesDM functions (e.g. output1, output2, etc.)
ncore
Numer of cores to use when computing leave-one-out cross-validation
roundTo
Number of digits to the right of the decimal point in the output

Value

modelTable A table with relevant model comparison data

Examples

Run this code
## Not run: 
# # Run two models and store results in "output1" and "output2"
# output1 <- dd_hyperbolic("example", 2000, 1000, 3, 3)
# 
# output2 <- dd_exp("example", 2000, 1000, 3, 3)
# 
# # Show the WAIC and LOOIC model fit estimates 
# printFit(output1, outpu2)
# ## End(Not run)

Run the code above in your browser using DataLab