plotDiag: Auxiliary function

Description Usage Arguments Examples

Description

Auxiliary function function for plotting graphical convergence diagnostics for Bayes models

Usage

1
plotDiag(x, plotnumber)

Arguments

x

Runjags object

plotnumber

Single numerical value
1 for plotting the trace
2 for plotting the cumulative distribution function
3 for plotting the histogram
4 for plotting the autocorrelation 5 for plotting all plots and additionally the Gelman and Rubin plot

...

Further plotting parameters from the plot function of runjags.

Examples

1
2
3
4
5
6
## Not run: 
resPEM <- rrisk.BayesPEM(x = 14, n = 100, k = 4, prior.se = c(64, 4), prior.sp = c(94, 16))
plotDiag(resPEM@results, plotnumber = 3)
plotDiag(resPEM@results, plotnumber = "all")

## End(Not run)

BfRstats/rriskBayes2 documentation built on May 5, 2019, 2:42 p.m.