loo.hsstan: Predictive information criteria for Bayesian models

Description Usage Arguments Value Examples

View source: R/postestimation.R

Description

Compute an efficient approximate leave-one-out cross-validation using Pareto smoothed importance sampling (PSIS-LOO), or the widely applicable information criterion (WAIC), also known as the Watanabe-Akaike information criterion.

Usage

1
2
3
4
5
## S3 method for class 'hsstan'
loo(x, cores = getOption("mc.cores"), ...)

## S3 method for class 'hsstan'
waic(x, cores = getOption("mc.cores"), ...)

Arguments

x

An object of class hsstan.

cores

Number of cores used for parallelisation (the value of options("mc.cores") by default).

...

Currently ignored.

Value

A loo object.

Examples

1
2
3
# continued from ?hsstan
loo(hs.biom)
waic(hs.biom)

hsstan documentation built on Sept. 16, 2021, 9:11 a.m.