Plot posterior marginals and corresponding priors

Share:

Description

Plots posterior densities and the densities of the corresponding priors. The prior density is automatically evaluated for the range given by the x-axis limits of the plot (which defaults to the posterior support).

Usage

1
2
post_prior_densplot(result, param = "all", burnin = NULL,
  prior.col = "red", n = 1000, ...)

Arguments

result

a deBInfer_result object

param

character, name of parameter to plot. "all" (default) plots all parameters

burnin

numeric, number of samples to discard before plotting

prior.col

character color for prior density

n,

integer, number of points at which to evaluate the prior density.

...

further arguments to coda::densplot