Creates a set of traceplots from the MCMC sample of an object of class JointAI
traceplot(object, ...)# S3 method for JointAI
traceplot(object, start = NULL, end = NULL, thin = NULL,
subset = "main", nrow = NULL, ncol = NULL, ...)
object inheriting from class JointAI
Arguments passed on to graphics::matplot
vector of line types, widths, and end styles. The first element is for the first column, the second element for the second column, etc., even if lines are not plotted for all columns. Line types will be used cyclically until all plots are drawn.
vector of line types, widths, and end styles. The first element is for the first column, the second element for the second column, etc., even if lines are not plotted for all columns. Line types will be used cyclically until all plots are drawn.
vector of line types, widths, and end styles. The first element is for the first column, the second element for the second column, etc., even if lines are not plotted for all columns. Line types will be used cyclically until all plots are drawn.
vector of colors. Colors are used cyclically.
vector of character expansion sizes, used cyclically.
This works as a multiple of par("cex")
. NULL
is
equivalent to 1.0
.
vector of background (fill) colors for the open plot
symbols given by pch = 21:25
as in points
. The
default NA
corresponds to the one of the underlying function
plot.xy
.
ranges of x and y axes, as in plot
.
ranges of x and y axes, as in plot
.
logical. If TRUE
, plots are added to current one,
using points
and lines
.
logical. If TRUE
, write one line of what is
done.
the first iteration of interest (see window.mcmc
)
the last iteration of interest (see window.mcmc
)
thinning interval (see window.mcmc
)
subset of monitored parameters (columns in the MCMC sample).
Can be specified as a numeric vector of columns, a vector of
column names, as subset = "main"
or NULL
.
If NULL
, all monitored nodes will be plotted.
subset = "main"
(default) the main parameters of the
analysis model will be plotted (regression coefficients/fixed
effects, and, if available, standard deviation of the residual
and random effects covariance matrix).
optional; number of rows in the plotting layout (determined automatically if not specified)
optional; number of columns in the plotting layout (determined automatically if not specified)
# NOT RUN {
mod <- lm_imp(y~C1 + C2 + M2, data = wideDF, n.iter = 100)
traceplot(mod)
# }
Run the code above in your browser using DataLab