HLSMdiag {HLSM} | R Documentation |
Function to conduct diagnostics the MCMC chain from a random effect HLSM (and HLSMfixedEF for fixed effects model)
Description
Function to compute and report diagnostic plots and statistics for a single or multiple HLSM objects.
Usage
HLSMdiag(object, burnin = 0,
diags = c('psrf', 'raftery', 'traceplot', 'autocorr'),
col = 1:6, lty = 1)
Arguments
object |
object or list of objects of class 'HLSM' returned by |
burnin |
numeric value to burn the chain while extracting results from the 'HLSM'object. Default is |
diags |
a character vector that is a subset of |
col |
a character or integer vector specifying the colors for the traceplot and autocorr plot |
lty |
a character or integer vector specifying the linetype for the traceplot and autocorr plot |
Value
Returns an object of class "HLSMdiag". It is a list that contains variable-level diagnostic tables from either or both of the raftery diagnostic and psrf diagnostic.
call |
the matched call. |
raftery |
list of matrices of suggested niters, burnin, and thinning for each chain. |
psrf |
list containing |
Author(s)
Christian Meyer