log_lik_flocker {flocker}R Documentation

Compute unit-wise or series-wise log-likelihood matrix for a flocker_fit object

Description

Compute unit-wise or series-wise log-likelihood matrix for a flocker_fit object

Usage

log_lik_flocker(flocker_fit, draw_ids = NULL)

Arguments

flocker_fit

A flocker_fit object

draw_ids

the draw ids to compute log-likelihoods for. Defaults to using the full posterior.

Details

In single-season models, rows are units (e.g. points or species-points; suitable for leave-one-unit-out CV). In multiseason models, rows are series (i.e. points or species-points, suitable for leave-one-series-out CV). In augmented models, rows are species (suitable for leave-one-species-out CV).

Value

A posterior log-likelihood matrix, where iterations are rows and units, series, or species are columns.

Examples

log_lik_flocker(example_flocker_model_single)

[Package flocker version 1.0-0 Index]