rBeta_mu | R Documentation |
The function generates random values from the beta distribution with a mean-precision parameterization, or from the augmented beta distribution.
rBeta_mu(n, mu, phi, q0 = NULL, q1 = NULL)
n |
the number of values to generate. If |
mu |
the mean parameter of the beta distribution. It must lie in (0, 1). |
phi |
the precision parameter of the Beta distribution. It must be a positive real value. |
q0 |
the probability of augmentation in zero. It must lie in (0, 1). In case of no augmentation is |
q1 |
the probability of augmentation in one. It must lie in (0, 1). In case of no augmentation is |
A vector of length n
.
Ferrari, S.L.P., Cribari-Neto, F. (2004). Beta Regression for Modeling Rates and Proportions. Journal of Applied Statistics, 31(7), 799–815. doi:10.1080/0266476042000214501
rBeta_mu(n = 100, mu = .5, phi = 30) rBeta_mu(n = 100, mu = .5, phi = 30, q0 = .2, q1 = .1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.