Skip to contents

INLA reports a marginal log-likelihood (the model evidence, available through summary()), not the conditional model log-likelihood that the logLik() generic denotes and that the brms backend exposes. Returning the marginal quantity under the logLik name would conflate two different things, so this method returns NA (with the degrees of freedom and observation count filled in) and a one-line note. This also lets downstream summaries (for example glance()) degrade gracefully instead of erroring with "no applicable method".

Usage

# S3 method for class 'flexybayes_inla'
logLik(object, ...)

Arguments

object

A flexybayes_inla fit.

...

Ignored. Present for compatibility with the generic.

Value

A logLik object whose value is NA_real_, carrying df and nobs attributes.