Function WAIC()
returns an object of class waic
, which is basically
a list containing three vectors p_waic
, deviance
, and waic
, with
separate values for each observed node
(i.e., for all combinations of persons and free categories).
For these objects, a print()
method exists, which
also calculates the standard error of the estimate of WAIC.
For backwards compatibility, if WAIC()
is called with summarize = TRUE
,
a vector with values p_waic
, deviance
, waic
, and se_waic
is returned.
WAIC values from two models can be compared by using the -
operator;
the result is an object of class waic_difference
.