The Zero- and/or One-Inflated Beta Distribution in Regression Parameterization
The Zero- and/or One-Inflated Beta Distribution in Regression Parameterization
Density, distribution function, quantile function, and random generation for the zero- and/or one-inflated beta distribution in regression parameterization.
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 (on the open unit interval).
phi: numeric. The precision parameter of the beta distribution.
p0: numeric. The probability for an observation of zero (often referred to as zero inflation).
p1: numeric. The probability for an observation of one (often referred to as one inflation).
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
The zero- and/or one-inflated beta distribution is obtained by adding point masses at zero and/or one to a standard beta distribution.
Note that the support of the standard beta distribution is the open unit interval where values of exactly zero or one cannot occur. Thus, the inflation jargon is rather misleading as there is no probability that could be inflated. It is rather a hurdle or two-part (or three-part) model.
Returns
dbeta01 gives the density, pbeta01 gives the distribution function, qbeta01 gives the quantile function, and rbeta01