Returns a table of model comparison statistics, by default focused on WAIC.
compare( ... , n=1e3 , sort="WAIC" , func=WAIC , WAIC=TRUE , refresh=0 )
ICweights( dev )
A series of fit models, separated by commas
Number of samples from posterior to use in computing WAIC/DIC
Sort table by ascending values in named column
Function to use in computing criteria for comparison
Deprecated: If TRUE
, uses func
for comparison. If FALSE
, uses DIC.
Progress display update interval. 0 suppresses display.
Vector of values to use in computing model weights
An object of class compareIC
with slots output
(table of results) and dSE
(matrix of standard errors of differences in IC between pairs of models).
This function computes WAIC and optionally DIC values for fit models and returns a table sorted by ascending values. Each row in this table is a model, and the various columns provide WAIC, effective numbers of parameters, model weights, and standard errors.
A plot
method is supported, for graphic display of the information criteria.