loo.tridim_transformation: Computes an efficient approximate leave-one-out...

View source: R/loo.R

loo.tridim_transformationR Documentation

Computes an efficient approximate leave-one-out cross-validation via loo library. It can be used for a model comparison via loo::loo_compare() function.

Description

Computes an efficient approximate leave-one-out cross-validation via loo library. It can be used for a model comparison via loo::loo_compare() function.

Usage

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

Arguments

x

A tridim_transformation object

...

unused

Value

A named list, see loo::loo() 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(loo(euc2), loo(aff2))

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