summaryChain: Compute mean, standard deviation, and quantiles of an MCMC...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/summaryChain.R

Description

Computes summary statistics for each parameter.

Usage

1
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).

Author(s)

Patrick Brown

See Also

restoreParams

Examples

1
2
3
4
5
6
# 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)

glmmBUGS documentation built on May 2, 2018, 1:03 a.m.