binomial_posterior_hpd | R Documentation |
The high posterior density interval in a binomial problem with Beta prior.
binomial_posterior_hpd( sample_size, observed, alpha = 1, beta = 1, level = 0.95 )
alpha |
First shape parameter of the Beta prior distribution. |
beta |
Second shape parameter of the Beta prior distribution. |
m |
Number of successes |
n |
Number of trials |
A vector with lower and upper bound of the HPD interval.
binomial_posterior_hpd(172, 1300)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.