JointAI (version 0.1.0)

traceplot: Traceplot of a JointAI model

Description

Creates a set of traceplots from the MCMC sample of an object of class JointAI

Usage

traceplot(object, ...)

# S3 method for JointAI traceplot(object, start = NULL, end = NULL, thin = NULL, subset = "main", nrow = NULL, ncol = NULL, ...)

Arguments

object

object inheriting from class JointAI

...

Arguments passed on to graphics::matplot

lty

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.

lwd

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.

lend

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.

col

vector of colors. Colors are used cyclically.

cex

vector of character expansion sizes, used cyclically. This works as a multiple of par("cex"). NULL is equivalent to 1.0.

bg

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.

xlim

ranges of x and y axes, as in plot.

ylim

ranges of x and y axes, as in plot.

add

logical. If TRUE, plots are added to current one, using points and lines.

verbose

logical. If TRUE, write one line of what is done.

start

the first iteration of interest (see window.mcmc)

end

the last iteration of interest (see window.mcmc)

thin

thinning interval (see window.mcmc)

subset

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).

nrow

optional; number of rows in the plotting layout (determined automatically if not specified)

ncol

optional; number of columns in the plotting layout (determined automatically if not specified)

See Also

summary.JointAI, lme_imp, glm_imp, lm_imp

Examples

Run this code
# 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