post_prior_densplot function

Plot posterior marginals and corresponding priors

Plot posterior marginals and corresponding priors

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

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
  • Maintainer: Philipp H Boersch-Supan
  • License: GPL-3
  • Last published: 2022-11-17