compute_WAIC: Calculate WAIC

View source: R/output.R

compute_WAICR Documentation

Calculate WAIC

Description

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

Usage

compute_WAIC(model_fit)

Arguments

model_fit

results of a model fit from the LDDMM() function, run with save_loglik = TRUE

Value

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


lddmm documentation built on Oct. 23, 2026, 5:07 p.m.