Description Usage Arguments Examples
Visualize the prior and posterior pdfs for a Beta-Binomial model.
1 | beta_binomial_plot(a, b, x = NULL, n = NULL)
|
a, b |
Shape parameters of the Beta prior (Beta(a,b)) |
x, n |
Observed number of successes & trials, respectively |
1 2 3 | library(ggplot2)
beta_binomial_plot(a=1, b=1)
beta_binomial_plot(a=1, b=1, x=5, n=10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.