Description Usage Arguments Details Value Examples
Displays traceplots and cumulative means. Draws on Edward Tufte's minimalist aesthetic ideas for the design.
1 2 |
fit |
the stanfit or runjags object |
keeppars |
the names of the parameters to be plotted. |
col |
the color scheme. One of "blue" (the default), "darkblue", "purples", "reds", "greens", "mix" , or "mix2" |
nrow |
number of rows in the layout |
ncol |
number of columns in the layout |
Traceplots should look very fuzzy and chaotic. If they look more ordered and correlated that indicates a problem with the sampler or model specification.
Cumulative mean plots display how quickly the model converges onto the expected value. The chains should all converge onto the same value or very close value very quickly. If they do not, they indicates you either need to draw more samples, use a longer adaptation and/or burnin/warmup for the MCMC chains, or perhaps reconsider the model if those do not work.
a base R plot
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.