compare | R Documentation |
Returns a table of model comparison statistics, by default focused on WAIC.
compare( ... , n=1e3 , sort="WAIC" , func=WAIC , WAIC=TRUE , refresh=0 , log_lik="log_lik" )
ICweights( dev )
... |
A series of fit models, separated by commas |
n |
Number of samples from posterior to use in computing WAIC/DIC |
sort |
Sort table by ascending values in named column |
func |
Function to use in computing criteria for comparison |
WAIC |
Deprecated: If |
refresh |
Progress display update interval. 0 suppresses display. |
dev |
Vector of values to use in computing model weights |
log_lik |
Name of log likelihood list in posterior |
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.
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).
Richard McElreath
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.