View source: R/plotMCMC_Diagnostics.R
plotMCMC_Diagnostics | R Documentation |
Function to make diagnostic plots for a parameter in an rstan mcmc simulation.
plotMCMC_Diagnostics(mcmc, var, label = var)
mcmc |
|
var |
|
label |
|
Requires the bayesplot and cowplot packages.
Combines plots from running bayesplot::mcmc_trace()
, bayesplot::mcmc_acf_bar()
,
bayesplot::mcmc_hist()
, and bayesplot::mcmc_areas()
for the model parameter identified
by var
Plots are combined using cowplot::plot_grid()
. The label
input
can be specified to provide a more informative name for the plotted parameter.
a ggplot2::gg object (or NULL if the bayesplot package is not installed.)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.