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.
Usage
comparepriors(x, parmfrow = NULL, ...)
Value
NULL
Arguments
x
Output object returned from jagsUI::jags()
parmfrow
Optional call to par(mfrow) for the number of rows & columns of plot window. Returns the graphics device to previous state afterward.
## a look at what parameters exist in the input objectnbyname(asdf_prior_jags_out)
## then, showing the function usagecomparepriors(asdf_prior_jags_out, parmfrow=c(2, 3))