Learn R Programming

glmmBUGS (version 1.0)

summaryChain: 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.
  • scalarMatrix for the scalar parameters
  • ...One matrix for each vector valued parameter

See Also

restoreParams

Examples

Run this code
# 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)

Run the code above in your browser using DataLab