waic.tridim_transformation: Computes widely applicable information criterion (WAIC).

View source: R/waic.R

waic.tridim_transformationR Documentation

Computes widely applicable information criterion (WAIC).

Description

Computes widely applicable information criterion via loo library. It can be used for a model comparison via loo::loo_compare() function.

Usage

## S3 method for class 'tridim_transformation'
waic(x, ...)

Arguments

x

A [tridim_transformation[tridim_transformation-class() object

...

unused

Value

A named list, see loo::waic() for details.

Examples

euc2 <- fit_transformation(depV1+depV2~indepV1+indepV2,
  NakayaData, transformation = 'euclidean')
aff2 <- fit_transformation(depV1+depV2~indepV1+indepV2,
  NakayaData, transformation = 'affine')
loo::loo_compare(waic(euc2), waic(aff2))

TriDimRegression documentation built on Sept. 13, 2023, 5:07 p.m.