Learn R Programming

BayHap (version 1.0.1)

plotReg: Plot acf, running mean, density functions and trace histories

Description

Displays plots of the autocorrelation function, the running mean, the density functions and the trace histories for the parameter(s) in the MCMC sequence. This function is suitable to plot objects of class reg.

Usage

plotReg(res, keep.rares.plot = FALSE, acf = NULL, d = NULL, rmean = NULL, tr = NULL)

Arguments

res
An object of class reg.
keep.rares.plot
Logical. Indicates if plots for estimates of rare category must be shown.
acf,d,rmean,tr
If all these arguments are set to the default value NULL, plotReg is going to plot all the graphs (auctocorrelation, density, running mean and trace). To plot only one, two or three graphs, set one, two or three of these arguments as TRUE.

Value

Plots of autocorrelation functions, density functions, running mean and trace histories.

Details

To plot only one type of graph, you can also use the functions plotACF, plotRmean, plotTrace and plotDensity.

See Also

plotACF, plotTrace, plotRmean, plotDensity