MCMC-overview {bayesplot}R Documentation

Plots for Markov chain Monte Carlo simulations

Description

The bayesplot MCMC module provides various plotting functions for creating graphical displays of Markov chain Monte Carlo (MCMC) simulations. The MCMC plotting functions section, below, provides links to the documentation for various categories of MCMC plots. Currently the MCMC plotting functions accept posterior draws provided in one of the following formats:

Note: typically the user should not include warmup iterations in the object passed to bayesplot plotting functions, although for certain plots (e.g. trace plots) it can occasionally be useful to include the warmup iterations for diagnostic purposes.

MCMC plotting functions

Posterior distributions

Histograms and kernel density plots of parameter draws, optionally showing each Markov chain separately.

Uncertainty intervals

Uncertainty intervals computed from parameter draws.

Trace plots

Times series of parameter draws.

Scatterplots

Scatterplots, heatmaps, and pairs plots of parameter draws.

Combinations

Combination plots (e.g. trace plot + histogram).

General MCMC diagnostics

MCMC diagnostic plots including Rhat, effective sample size, autocorrelation.

NUTS diagnostics

Special diagnostic plots for the No-U-Turn Sampler.

Comparisons to "true" values

Plots comparing MCMC estimates to "true" parameter values (e.g., values used to simulate data).

References

Gabry, J., Simpson, D., Vehtari, A., Betancourt, M., Gelman, A. (2017). Visualization in Bayesian workflow. arXiv preprint arvix:1709.01449.

See Also

Other MCMC: MCMC-combos, MCMC-diagnostics, MCMC-distributions, MCMC-intervals, MCMC-nuts, MCMC-parcoord, MCMC-recover, MCMC-scatterplots, MCMC-traces


[Package bayesplot version 1.4.0 Index]