Description Usage Arguments Details Value Examples
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
.
1 | diagnostics(x, plots = FALSE)
|
x |
Result slot returned by |
plots |
Logical, if |
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.
Returns TRUE
if the user confirms convergence. Otherwise the
function returns FALSE
.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.