Learn R Programming

hsstan (version 0.8.2)

posterior_summary: Posterior summary

Description

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.

Examples

Run this code
utils::example("hsstan", echo=FALSE)
# continued from ?hsstan
posterior_summary(hs.biom)

Run the code above in your browser using DataLab