numeric. The mean of the beta distribution that is extended to support [theta1, theta2].
phi
numeric. The precision parameter of the beta distribution that is extended to support [theta1, theta2].
theta1, theta2
numeric. The minimum and maximum, respectively, of the 4-parameter beta distribution. By default a symmetric support is chosen with theta1 set to 0 and theta2 = 1 - theta1 which thus corresponds to the classic beta distribution.
Details
The distribution is obtained by a linear transformation of a beta-distributed random variable with intercept theta1 and slope theta2 - theta1.
## 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)