powered by
Plot Markov chain Monte Carlo cumulative quantiles. This is a diagnostic plot for deciding whether the chain has converged.
plotCumu(mcmc, probs=c(0.025,0.975), div=1, log=FALSE, base=10, main=NULL, xlab="Iterations", ylab="Value", lty.median=1, lwd.median=2, col.median="black", lty.outer=2, lwd.outer=1, col.outer="black", …)
MCMC chain(s) as a vector, data frame or mcmc object.
mcmc
vector of outer quantiles to draw, besides the median.
denominator to shorten values on the y axis.
whether values should be log-transformed.
logarithm base.
main title.
x-axis label.
y-axis label.
line type of median.
line width of median.
color of median.
line type of outer quantiles.
line width of outer quantiles.
color of outer quantiles.
passed to cumuplot, title, and axis.
cumuplot
title
axis
Null, but a plot is drawn on the current graphics device.
cumuplot is the underlying plotting function, and quantile is called iteratively to calculate the cumulative quantiles.
quantile
plotTrace, plotAuto, plotCumu, and plotSplom are diagnostic plots.
plotTrace
plotAuto
plotCumu
plotSplom
plotDens and plotQuant are posterior plots.
plotDens
plotQuant
plotMCMC-package gives an overview of the package.
plotMCMC-package
# NOT RUN { plotCumu(xpar$R0, main="R0") plotCumu(xpar$cSfull, main="cSfull") plotCumu(xpar, probs=c(0.25,0.75), ann=FALSE, axes=FALSE) # }
Run the code above in your browser using DataLab