summaryChain {glmmBUGS}R Documentation

Compute mean, standard deviation, and quantiles of an MCMC run

Description

Computes summary statistics for each parameter.

Usage

summaryChain(chain, probs = c(0.005, 0.025, 0.05, 0.5))

Arguments

chain The result from restoreParams, or the sims.array componento f a bugs call.
probs Quantiles for the posterior credible interval

Value

A list of matrices, with rows corresponding to summary statistics and columns to parameters.

scalar Matrix for the scalar parameters
... One matrix for each vector valued parameter

Author(s)

Patrick Brown

See Also

restoreParams

Examples

# create a simple chain
thechain = list(beta = array(1, c(10, 3,4), dimnames = list(NULL, NULL, paste("beta[", 1:4, "]", sep=""))), intercept = matrix(1, 10, 3))

summaryChain(thechain)

[Package glmmBUGS version 1.5 Index]