comparepriors {jagshelper} | R Documentation |
Compare Priors
Description
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, ...)
Arguments
x |
Output object returned from jagsUI::jags() |
parmfrow |
Optional call to |
... |
additional arguments to comparedens |
Value
NULL
Author(s)
Matt Tyers
See Also
comparecat, comparedens, plotdens
Examples
## 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))
[Package jagshelper version 0.3.1 Index]