loo.cumhist {bistablehistory}R 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 'cumhist'
loo(x, ...)

Arguments

x

A cumhist object

...

unused

Value

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

Examples

data(br_singleblock)

gamma_fit <- fit_cumhist(br_singleblock, state="State", duration="Duration")
loo_gamma <- loo(gamma_fit)


[Package bistablehistory version 1.1.2 Index]