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), by default set to 0.
p1
numeric. The probability for an observation of one (often referred to as one inflation), by default set to 0.
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.
## all methods above can either be applied elementwise or for## all combinations of X and x, if length(X) = length(x),## also the result can be assured to be a matrix via drop = FALSEp<-c(0.05, 0.5, 0.95)quantile(X, p, elementwise =FALSE)