Skip to contents

Returns INLA's posterior-mean fitted values (response scale) for the observed rows, taken from summary.fitted.values. Without this method fitted() dispatched to stats::fitted.default, which silently returned NULL for an INLA fit because the object does not populate a $glm slot.

Usage

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

Arguments

object

A flexybayes_inla fit.

...

Ignored. Present for compatibility with the generic.

Value

A numeric vector of posterior-mean fitted values, one per observation.