checkChain: Plot an MCMC run

Description Usage Arguments Value Author(s) See Also Examples

View source: R/checkChain.R

Description

Makes time series plots of the parameters (not the random effects) of an MCMC run.

Usage

1
checkChain(chain, parameters=NULL, oneFigure=TRUE)

Arguments

chain

The result from restoreParams, or the sims.array componento f a bugs call.

parameters

Vector of character strings giving names of parameters to plot. Default is all parameters with names starting with either "beta", "intercept", or "SD".

oneFigure

if TRUE, use par(mfrow=c(a,b)) to put all plots on the same device. Otherwise create a new device for each plot.

Value

Plots are produced, nothing is returned

Author(s)

Patrick Brown

See Also

restoreParams, summaryChain

Examples

1
2
3
4
5
thechain = list(beta = array(1, c(10, 3,4), 
dimnames = list(NULL, NULL, paste("beta[", 1:4, "]", sep=""))),
 intercept = matrix(1, 10, 3))

checkChain(thechain)

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