Plot Prior and Posterior Marginal Distributions
plot_prior_posterior_densities.RdGenerate 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
bpfitobject resulting from fitting a BayesPharma model- title_label
string of the plot title.
- exclude_variables
stringvector of variables to exclude- ...
further arguments passed to
brms::brm()to sample from the prior
Value
ggplot2::ggplot() object.