post_prior_densplot: Plot posterior marginals and corresponding priors

View source: R/mcmc_plotting.R

post_prior_densplotR Documentation

Plot posterior marginals and corresponding priors

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

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


pboesu/debinfer documentation built on Nov. 17, 2022, 5:51 p.m.