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, optionally including with HMC/NUTS diagnostic information.

Scatterplots

Scatterplots, heatmaps, and pairs plots of parameter draws, optionally including with HMC/NUTS diagnostic information.

Parallel coordinates plots

Parallel coordinates plot of MCMC draws (one dimension per parameter), optionally including with HMC/NUTS diagnostic information.

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., and Gelman, A. (2018). Visualization in Bayesian workflow. Journal of the Royal Statistical Society Series A, accepted for publication. arXiv preprint: http://arxiv.org/abs/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.6.0 Index]