Learn R Programming

lame (version 1.3.4)

loo: Generic dispatcher for loo / waic on ame / lame fits

Description

Lightweight S3 generics so calls of the form loo(fit) dispatch through R's S3 system even when the loo package is not loaded. When loo is loaded, its generic resolves first; this fallback only fires for bare-namespace use.

Usage

loo(x, ...)

waic(x, ...)

Value

A loo / waic object.

Arguments

x

a fitted ame or lame object with $log_lik.

...

passed to the relevant method.