posterior_summary: Posterior summary

Description Usage Arguments Value See Also Examples

View source: R/summaries.R

Description

Produce a summary of the posterior samples for the quantities of interest.

Usage

1
2
3
4
5
6
7
posterior_summary(x, prob, ...)

## Default S3 method:
posterior_summary(x, prob = 0.95, ...)

## S3 method for class 'hsstan'
posterior_summary(x, prob = 0.95, pars = NULL, ...)

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.

Value

A matrix with columns containing mean, standard deviation and posterior intervals for the given quantities.

See Also

summary() to produce summaries of hsstan objects that include the number of effective samples and the split-Rhat diagnostic.

Examples

1
2
# continued from ?hsstan
posterior_summary(hs.biom)

hsstan documentation built on Sept. 16, 2021, 9:11 a.m.