Posterior means of the fixed effects, read from the INLA fit's
summary.fixed slot (treatment-contrast basis). These are the
coefficients consumed by emmeans::emmeans() and
marginaleffects::predictions() via the flexyBayes support methods.
Arguments
- object
A
flexybayes_inlafit.- what
Which part of the fit to return:
"fixed"(the default),"random","missing"or"all". Seecoef.flexybayes()for the shape of each.- ...
Ignored. Present for compatibility with the generic.
Value
For the default what = "fixed", a named numeric vector of
fixed-effect posterior means. Otherwise as documented for
coef.flexybayes().
Details
An INLA fit carries no $glm slot, so the fixed vector is read here
and not inherited. Every other value of what is resolved by the
shared body coef.flexybayes() uses, so the two engines answer the
same question the same way.
A factor with a non-syntactic level (for example a level containing a
space, "low N") is legalised internally (make.names()) before the
INLA emit, so the fit itself never dies on it. This method restores
the user's own, unlegalised label in the names it returns, as do
ranef(), summary() and predict(classify = ) on the same fit.