superdiagPlot {superdiag} | R Documentation |
Summary Plots for mcmc
Objects
Description
The superdiagPlot
function takes mcmc
or mcmc.list
as input.
It provides summary plots including trace plot(s) and density histogram(s) for
each variable in the MCMC chain(s).
Usage
superdiagPlot(
mcmcoutput,
burnin,
params,
title,
col,
trace.options,
density.options,
title.options
)
## S3 method for class 'mcmc'
superdiagPlot(
mcmcoutput,
burnin,
params = "all",
title,
col = c("grey25", "grey75"),
trace.options = list(trace.axis = TRUE, box = TRUE),
density.options = list(),
title.options = list()
)
## S3 method for class 'mcmc.list'
superdiagPlot(
mcmcoutput,
burnin,
params = "all",
title,
col,
trace.options = list(trace.axis = TRUE, box = TRUE),
density.options = list(),
title.options = list()
)
Arguments
mcmcoutput |
A |
burnin |
The number of burn-in iterations. Defaults to half of the chain(s). |
params |
The parameters to be summarized. Defaults to all. Users can specify a subset of variables by name or index to reduce the size of plots. |
title |
A character vector specifies the title of the plot. |
col |
A vector or list specifies the color schemes of the plot. For |
trace.options |
Additional options for trace plots. It can take arguments as
in |
density.options |
Additional options for density histograms. It can take arguments
as in |
title.options |
Additional options for title. It can take arguments as in
|
Value
A summary plot for each variable in the MCMC chain(s).
See Also
Examples
## Not run:
data(tobit.list)
summary(tobit.list[1])
# FOR mcmc.list OBJECT
superdiagPlot(tobit.list, burnin=0)
# FOR mcmc OBJECT
superdiagPlot(tobit.list[[1]], burnin=0, col=c("grey25", "dodgerblue"),
title = "Tobit Model (Chain 1)", title.options=list(cex=1.2))
## End(Not run)