These functions compute the cross-correlations of the MCMC samples in an
JointAI object via coda::crosscorr() and plot them using either the
corrplot package or coda::crosscorr.plot().
cross_corr_plot(object, outcome = 1L, start = NULL, end = NULL,
thin = NULL, type = "corrplot")
Value
a matrix (or a plot)
Arguments
object
an object of class JointAI
outcome
integer; index of the outcome model for which the
correlations should be plotted
start
the first iteration of interest
(see window.mcmc)
end
the last iteration of interest
(see window.mcmc)
thin
thinning interval (integer; see window.mcmc).
For example, thin = 1 (default) will keep the MCMC samples
from all iterations; thin = 5 would only keep every 5th
iteration.
type
character; type of plot to be produced. Either "corrplot"
(default) or "coda".