waic | R Documentation |
Implements LOO-CV, WAIC and Raw LPPD for the model_judgement
function. Contains
the helper function "colVars" which calculates row-wise variances efficiently.
waic(stanfit, current_model, lik_name, impute_inf)
stanfit |
A Stanfit object fitted on synthetic data. |
current_model |
Name of the current model (Currently not in use.) |
lik_name |
Name under which the log likelihoods have been saved in the models. Needs to be identical across all Stanfit objects. |
impute_inf |
A boolean which regulates if underflow values should be automatically imputed or not. If
|
A list with LOO-CV, WAIC and Raw LPPD calculations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.