BetaBinomial | R Documentation |
Cumulative density & mass functions, and random number generation for the Beta-binomial distribution using the following re-parameterisation of the Stan Beta-binomial definition:
mu = alpha * beta
mean probability of trial success.
phi = (1 - mu) * beta
precision or over-dispersion, component.
dbeta_binomial(x, size, mu, phi, log = FALSE)
pbeta_binomial(q, size, mu, phi, lower.tail = TRUE, log.p = FALSE)
rbeta_binomial(n, size, mu, phi)
x , q |
Vector of quantiles. |
size |
Vector of number of trials (zero or more). |
mu |
Vector of means. |
phi |
Vector of precisions. |
log |
Logical; If |
lower.tail |
Logical; If |
log.p |
Logical; If |
n |
Number of draws to sample from the distribution. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.