diagnostics: Diagnostic plots for MCMC models provided by rrisk.BayesPEM,...

Description Usage Arguments Details Value Examples

Description

This function provides a GUI for diagnostic plots to check convergence in Markov chain Monte-Carlo (MCMC) models provided by rrisk.BayesZIP, rrisk.BayesZINB and rrisk.BayesPEM.

Usage

1
diagnostics(x, plots = FALSE)

Arguments

x

Result slot returned by rrisk.BayesPEM, rrisk.BayesZIP or rrisk.BayesZINB of class runjags.

plots

Logical, if TRUE the diagnostic plots will be displayed in separate windows

Details

The argument x denotes the result of the MCMC models. The user is interactively requested to confirm whether the convergence has been reached. In this case the function returns TRUE otherwise FALSE.
The function is not intended to be called directly but is internally called within the models.

Value

Returns TRUE if the user confirms convergence. Otherwise the function returns FALSE.

Examples

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

## End(Not run)

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