Learn R Programming

glmmBUGS (version 2.4.2)

checkChain: Plot an MCMC run

Description

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

Usage

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

See Also

restoreParams, summaryChain

Examples

Run this code
# NOT RUN {
<!-- % create a sample MCMC result -->
# }
# NOT RUN {
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)

# }

Run the code above in your browser using DataLab