Plot Prior and Posterior Marginal Distributions
plot_prior_posterior_densities.Rd
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.