View source: R/plotMCMC_RStan.R
plotMCMC_RStan | R Documentation |
Function to make diagnostic plots for a parameter in an rstan mcmc simulation.
plotMCMC_RStan(mcmc, var, label = var)
mcmc |
|
var |
|
label |
|
Requires the rstan and cowplot packages. Combines plots from running rstan::stan_trace()
, rstan::stan_ac()
(both ACF and PACF plots),
rstan::stan_hist()
, and rstan::stan_dens()
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 rstan package is not installed.)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.