n: numeric. Number of observations. If length(n) > 1, the length is taken to be the number required.
mu: numeric. The mean of the beta distribution.
phi: numeric. The precision parameter of the beta distribution.
log, log.p: logical. If TRUE, probabilities p are given as log(p).
lower.tail: logical. If TRUE (default), probabilities are P[X <= x] otherwise, P[X > x].
Details
This is the reparameterization of the beta distribution with mean mu
and precision phi, as employed in beta regression. The classic parameterization of the beta distribution is obtained by setting shape1 = mu * phi and shape2 = (1 - mu) * phi, respectively.
Returns
dbetar gives the density, pbetar gives the distribution function, qbetar gives the quantile function, and rbetar