Class and methods for extended-support beta distributions using the workflow from the distributions3 package.
Usage
XBeta(mu, phi, nu = 0)
Arguments
mu
numeric. The mean of the underlying beta distribution on [-nu, 1 + nu].
phi
numeric. The precision parameter of the underlying beta distribution on [-nu, 1 + nu].
nu
numeric. Exceedence parameter for the support of the underlying beta distribution on [-nu, 1 + nu] that is censored to [0, 1].
Details
In order to obtain an extended-support beta distribution on [0, 1] an additional exceedence parameter nu is introduced. If nu > 0, this scales the underlying beta distribution to the interval [-nu, 1 + nu] where the tails are subsequently censored to the unit interval [0, 1] with point masses on the boundaries 0 and 1. Thus, nu controls how likely boundary observations are and for nu = 0 (the default), the distribution reduces to the classic beta distribution (in regression parameterization) without boundary observations.
## 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)