Produce a summary of the posterior samples for the quantities of interest.
Usage
posterior_summary(x, prob, ...)
# S3 method for default
posterior_summary(x, prob = 0.95, ...)
# S3 method for hsstan
posterior_summary(x, prob = 0.95, pars = NULL, ...)
Value
A matrix with columns containing mean, standard deviation and posterior
intervals for the given quantities.
Arguments
x
An object containing or representing posterior samples. If x
is a matrix, it should have size S by Q, where S
is the number of posterior samples, and Q is the number of
quantities of interest.
prob
Width of the posterior intervals (0.95, by default).
...
Further arguments passed to or from other methods.
pars
Vector of parameter names to be extracted. If NULL
(default) then this refers to the set of predictors used in the
model.
See Also
summary() to produce summaries of hsstan objects that include the number
of effective samples and the split-Rhat diagnostic.