Learn R Programming

glmmBUGS (version 2.4.2)

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 component of 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

FittedRateReffect

For spatial models only, summaries on the natural scale (exponential of FittedReffect).

See Also

restoreParams

Examples

Run this code
# NOT RUN {
# 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