Learn R Programming

glmmBUGS (version 1.0)

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)

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".

Value

  • Plots are produced, nothing is returned

See Also

restoreParams, summaryChain

Examples

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