Learn R Programming

bistablehistory (version 1.1.2)

loo.cumhist: 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 cumhist
loo(x, ...)

Value

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

Arguments

x

A cumhist object

...

unused

Examples

Run this code
data(br_singleblock)
# \donttest{
gamma_fit <- fit_cumhist(br_singleblock, state="State", duration="Duration")
loo_gamma <- loo(gamma_fit)
# }

Run the code above in your browser using DataLab