Prints the fixed-effect posterior summaries, the variance components with the prior each one carried, the engine's own convergence diagnostics, and whatever engine-native panels the fit earns. On a brms fit with a sectioned residual it additionally prints the residual variance and standard deviation for each level of the sectioning factor, computed from the draws, not by transforming a posterior mean.
Usage
# S3 method for class 'flexybayes'
summary(object, ...)Value
Invisibly, an object of class
c("summary.flexybayes", "list") carrying the slots below. Printed
as a side effect.
fixedData frame:
term,estimate,std.error,conf.low,conf.high. Posterior mean, posterior standard deviation and a credible interval, not a sampling-theory estimate and its confidence interval.varcompData frame:
component,estimate,std.error,conf.low,conf.high,prior,note. One row per variance component (and per correlation on a fit carrying a latent field), on the standard-deviation scale, under the canonical component name.prioris a projection ofprior_summary().noteis"collapsed"when the component's 97.5% quantile sits below 1% of the posterior-median residual standard deviation, a display heuristic for a posterior piled against zero, not a test.randomNamed list, one data frame per grouping factor, with the columns
group,level,estimate,std.error,conf.low,conf.high. Empty when the model carries no random terms. The same objectranef()returns.missingData frame of the unobserved design cells, ASReml's
mvfactor, with the columnsrow,estimate,std.error,conf.low,conf.high, followed by any design index variables the fit recorded.rowindexes the data the engine was handed. The posterior is the engine's own: INLA's fitted-value marginal at that row, brms's sampledmi()response. Zero rows (neverNULL) when every response was observed. The same tablecoef()returns forwhat = "missing".convergeList, in the engine's own terms: R-hat, effective sample sizes and divergent transitions where a sampler ran. Mode status, marginal likelihood and the largest Kullback-Leibler divergence where INLA's Laplace approximation did. No R-hat is invented for an approximation that has none.
n_designRows the engine was handed.
n_observedHow many of those carried an observed response.
na_actionThe missing-response record the fit carries, or
NULLon a fit assembled without that layer.modelOne-line description of the random and residual structure, derived from the model representation, not from any engine's emitted formula.
engine"inla"or"brms".callThe recorded call.
spatial_fieldPresent only on a fit carrying an autoregressive latent field, and absent (not
NULL-valued) otherwise. A data frame ofparameter,median,lower,upper: the field's correlation and standard-deviation parameters and the nugget standard deviation, on the scale a reader thinks in, not INLA's precision scale. The point estimate is the posterior median, because the standard deviations are read off precision marginals and only a monotone summary survives the reciprocal square root exactly. The same table the printed field panel renders, unrounded.offsetPresent only on a fit whose fixed formula carries
offset()terms, and absent otherwise: the offset calls as written, in formula order. Each has a fixed coefficient of one.
Details
The returned object is the same eleven-slot
summary.flexybayes object on every active engine, so
summary(fit)$varcomp answers whichever engine ran the fit. Before
0.9.1 the two engines returned two incomparable objects, INLA's
four-slot list and brms's brmssummary, and neither carried a
variance-component table at all.
A fit whose model carries an autoregressive latent field gains one
further slot, spatial_field, which is the field's own parameters on
the correlation and standard-deviation scales. It is the one
engine-native slot the object carries, it is present only where the
model has a field, and the eleven above it are on every fit.
See also
prior_summary() for the full resolved prior, and
nobs() for the design and observed counts on their own.