Skip to contents

Compute leave-one-out cross-validation using Pareto-smoothed importance sampling (PSIS-LOO).

Usage

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

Arguments

x

A ratiod_fit object

...

Additional arguments passed to loo::loo

Value

A loo object

Details

The pointwise log-likelihood is reconstructed from the posterior draws and the model (see ratiod_compare()); it works on any fit produced by the hmc, ess, sghmc, or vi backend. The score is conditional on the fixed-effect (population-level) linear predictor.