| plot_prior_likelihood | R Documentation |
Plot prior, likelihood, and posterior density overlays
plot_prior_likelihood(
prior,
data_summary,
show_posterior = TRUE,
show_conflict = TRUE,
n_grid = 500,
title = NULL
)
prior |
A |
data_summary |
Named list with |
show_posterior |
Logical. Default |
show_conflict |
Logical. Default |
n_grid |
Integer. Default |
title |
Character. Plot title. |
A ggplot object.
prior <- elicit_beta(mean = 0.30, sd = 0.10, method = "moments",
label = "Response rate")
plot_prior_likelihood(prior, list(n = 40, x = 20, type = "binary"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.