Skip to contents

The pointwise log-likelihood of the observed data (from the Stan generated quantities), suitable for loo::loo().

Usage

# S3 method for class 'kb_fit'
log_lik(object, ...)

Arguments

object

A kb_fit object.

...

Unused.

Value

A draws-by-observations (D x N) matrix.

Examples

ll <- log_lik(fit_weight_sim_nereo)
dim(ll)
#> [1] 800 234