Description Usage Arguments Examples
View source: R/bernoulli_models.R
Plot the posterior distribution of a Bernoulli model with Beta prior
1 | bernoulli_posterior_plot(n, m, alpha, beta, show_hpd = FALSE)
|
n |
Number of trials |
m |
Number of successes |
alpha |
First shape parameters of the Beta prior |
beta |
Second shape parameter of the Beta prior |
show_hpd |
Show the HPD interval |
1 2 | bernoulli_posterior_plot(250, 139, 5, 5)
bernoulli_posterior_plot(100, 60, 2, 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.