shape1, shape2, shape3 and
scale.dgenbeta(x, shape1, shape2, shape3, rate = 1, scale = 1/rate,
log = FALSE)
pgenbeta(q, shape1, shape2, shape3, rate = 1, scale = 1/rate,
lower.tail = TRUE, log.p = FALSE)
qgenbeta(p, shape1, shape2, shape3, rate = 1, scale = 1/rate,
lower.tail = TRUE, log.p = FALSE)
rgenbeta(n, shape1, shape2, shape3, rate = 1, scale = 1/rate)
mgenbeta(order, shape1, shape2, shape3, rate = 1, scale = 1/rate)
levgenbeta(limit, shape1, shape2, shape3, rate = 1, scale = 1/rate,
order = 1)length(n) > 1, the length is
taken to be the number required.TRUE, probabilities/densities
$p$ are returned as $\log(p)$.TRUE (default), probabilities are
$P[X \le x]$, otherwise, $P[X > x]$.dgenbeta gives the density,
pgenbeta gives the distribution function,
qgenbeta gives the quantile function,
rgenbeta generates random deviates,
mgenbeta gives the $k$th raw moment, and
levgenbeta gives the $k$th moment of the limited loss
variable. Invalid arguments will result in return value NaN, with a warning.
shape1 $=
\alpha$, shape2 $= \beta$, shape3
$= \tau$ and scale $= \theta$, has
density:
$$f(x) = \frac{\Gamma(\alpha + \beta)}{\Gamma(\alpha)\Gamma(\beta)}
(x/\theta)^{\alpha \tau} (1 - (x/\theta)^\tau)^{\beta - 1}
\frac{\tau}{x}$$
for $0 < x < \theta$, $\alpha > 0$,
$\beta > 0$, $\tau > 0$ and $\theta > 0$. (Here $\Gamma(\alpha)$ is the function implemented
by R's gamma() and defined in its help.)The Generalized Beta is the distribution of the random variable $$\theta X^{1/\tau},$$ where $X$ has a Beta distribution with parameters $\alpha$ and $\beta$.
The $k$th raw moment of the random variable $X$ is $E[X^k]$ and the $k$th limited moment at some limit $d$ is $E[\min(X, d)]$.
Johnson, N. L., Kotz, S. and Balakrishnan, N. (1995) Continuous Univariate Distributions, volume 2, Wiley.
exp(dgenbeta(2, 2, 3, 4, 0.2, log = TRUE))
p <- (1:10)/10
pgenbeta(qgenbeta(p, 2, 3, 4, 0.2), 2, 3, 4, 0.2)
mgenbeta(2, 1, 2, 3, 0.25) - mgenbeta(1, 1, 2, 3, 0.25) ^ 2
levgenbeta(10, 1, 2, 3, 0.25, order = 2)Run the code above in your browser using DataLab