binomial_posterior_plot | R Documentation |
Plot the posterior distribution of a binomial model with Beta prior
binomial_posterior_plot( n, m, alpha = 1, beta = 1, show_hpd = TRUE, level = 0.95, xlim = c(0, 1) )
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 |
level |
The amount of mass in HPD interval |
xlim |
The limits on x-axis |
binomial_posterior_plot(250, 139, 5, 5) binomial_posterior_plot(100, 60, 2, 2, level = 0.99)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.