posterior_summary {hsstan}R Documentation

Posterior summary

Description

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

Usage

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


# continued from ?hsstan
posterior_summary(hs.biom)


[Package hsstan version 0.8.2 Index]