Skip to contents

Generate a plot that shows for each model variable the distribution of the marginal posterior uncertainty overlaid on the distribution of the marginal prior uncertainty.

Usage

plot_prior_posterior_densities(
  model,
  title_label = "Prior Posterior Density",
  exclude_variables = c("__$", "lprior"),
  ...
)

Arguments

model

bpfit object resulting from fitting a BayesPharma model

title_label

string of the plot title.

exclude_variables

string vector of variables to exclude

...

further arguments passed to brms::brm() to sample from the prior

Value

ggplot2::ggplot() object.

Examples

if (FALSE) { # \dontrun{
  plot_prior_posterior_densities(
    model = my_sigmoid_model,
    title_label = "Prior Posterior Density Plots")
} # }