Learn R Programming

lddmm (version 0.4.2)

compute_WAIC: Calculate WAIC

Description

Function to compute the Watanabe-Akaike information criterion (Gelman, Hwang, Vehtari, 2014), which estimates the expected out-of-sample-prediction error using a bias-corrected adjustment of within-sample error.

Usage

compute_WAIC(model_fit)

Value

A scalar indicating the WAIC (smaller WAIC denotes better fit)

Arguments

model_fit

results of a model fit from the lddmm function