Posterior covariance of a per-row INLA fit's fixed effects
Source:R/methods_inla.R
vcov.flexybayes_inla.RdThe joint posterior covariance of the fixed effects, the matrix that
contrast and marginal-mean standard errors need. It is computed exactly
from the Gaussian approximations INLA stores for the fit, averaged over
INLA's hyperparameter configurations, so it involves no random draws:
every call on the same fit returns the same matrix and the session's
random number stream is left untouched. It is the covariance of the
draws INLA::inla.posterior.sample() would give, without their Monte
Carlo error. The standard deviations on its diagonal agree closely with
summary.fixed$sd, which comes from INLA's marginal densities.
Usage
# S3 method for class 'flexybayes_inla'
vcov(object, n_samples = 2000L, ...)Value
Posterior covariance matrix of the fixed effects, with the
coefficient names of coef() as dimnames.