View source: R/diagnostic_plots.R
comparepriors | R Documentation |
Side-by-side kernel density plots for all parameters with parameter
names ending in "_prior"
, and corresponding parameters without. It should
be noted that these parameters must be specified in JAGS as well as the
corresponding parameters, and this is left to the user.
This function is a wrapper of comparedens.
Kernel densities are plotted vertically, either left- or right-facing. Parameters with the same name are plotted facing one another.
comparepriors(x, parmfrow = NULL, ...)
x |
Output object returned from jagsUI::jags() |
parmfrow |
Optional call to |
... |
additional arguments to comparedens |
NULL
Matt Tyers
comparecat, comparedens, plotdens
## a look at what parameters exist in the input object
nbyname(asdf_prior_jags_out)
## then, showing the function usage
comparepriors(asdf_prior_jags_out, parmfrow=c(2, 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.