Skip to contents

This function extracts point-wise log-likelihood values and then calculates LOO statistics.

Usage

get_loo(data, object, posterior)

Arguments

data

A list containing the data that was passed to MakeADFun. Must include switches for different data components (cpue_switch, aerial_switch, etc.).

object

A list specifying the AD object created using MakeADFun. Used to extract posterior estimates.

posterior

An snutsfit object created using the sample_snuts function. Contains posterior samples from MCMC chains.

Value

A psis_loo object containing LOO-IC estimates and diagnostics.