comparepriors: Compare Priors

View source: R/diagnostic_plots.R

comparepriorsR 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 par(mfrow) for the number of rows & columns of plot window. Returns the graphics device to previous state afterward.

...

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))

jagshelper documentation built on Oct. 22, 2024, 1:06 a.m.