Learn R Programming

lame (version 1.3.4)

read_log_lik: Read the per-iteration log-lik matrix back from on-disk chunks

Description

For fits run with save_log_lik = "chunked", the per-iteration pointwise log-likelihood lives in per-column-chunk binary files instead of fit$log_lik. This helper reconstitutes the [n_stored, n_obs] matrix in memory by issuing one readBin per chunk. loo.lame() / waic.lame() call this transparently.

Usage

read_log_lik(x)

Value

The full [n_stored, n_obs] double matrix.

Arguments

x

A fitted ame/lame object with $log_lik_chunks (i.e. fit with save_log_lik = "chunked").