View source: R/plot-mcmc-diagnostics.R
plot_mcmc_diagnostics | R Documentation |
Plot MCMC diagnostics
plot_mcmc_diagnostics(
model,
post_regex,
post_name,
probs = c(0.025, 0.5, 0.975),
color = "blue",
fill = "blue",
rib_alpha = 0.2,
line_bar_alpha = 1,
...
)
model |
A model object as output by |
post_regex |
A regular expression representing a parameter as it
appears in the |
post_name |
A name to show for the posterior on the plot, where the name can be a string or an expression. |
probs |
A vector of 3 values for the lower, median, and upper quantiles |
... |
Arguments passed to |
all_alpha |
Alpha value for density and running mean plots |
Panels are as follows:
Top left: traces of posteriors across iterations,
Top right: cumulative running median with 2.5th and 97.5th percentiles
Bottom left: autocorrelation present in the chain at different lag times (i.e., distance between samples in the chain), and
Bottom right: distribution of the values in the chain (i.e., the marginal density from a smoothed histogram of values in the trace plot).
A 4-panel plot of MCMC diagnostics
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.