compute_WAIC: Calculate WAIC

View source: R/fcts.R

compute_WAICR Documentation

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)

Arguments

model_fit

results of a model fit from the lddmm function

Value

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


lddmm documentation built on June 7, 2023, 5:28 p.m.