Traceplots of JAGS output

Description

Displays a series of MCMC iteration plots for each monitored parameter in a JAGS analysis. The calculated Rhat value for each parameter is given in the plot title if there is >1 chains.

Usage

1
2
3
4
  traceplot(x, ...)

  ## S3 method for class 'jagsUI'
traceplot(x, parameters=NULL, ...)

Arguments

x

A jagsUI object

parameters

A vector of names (as characters) of parameters to plot. Parameter names must match parameters included in the model. Non-scalar parameters with multiple values (e.g. alpha where alpha is a vector of length 5) can be selected/subsetted (e.g. alpha[1:3]). Calling non-scalar parameters without subsetting (e.g. alpha) will plot all values of alpha. If parameters=NULL, all nodes will be plotted.

...

Further arguments pass to or from other methods.

Author(s)

Ken Kellner contact@kenkellner.com.