dgengamma.orig(x, shape, scale=1, k, log = FALSE)
pgengamma.orig(q, shape, scale=1, k, lower.tail = TRUE, log.p = FALSE)
qgengamma.orig(p, shape, scale=1, k, lower.tail = TRUE, log.p = FALSE)
rgengamma.orig(n, shape, scale=1, k)
Hgengamma.orig(x, shape, scale=1, k)
hgengamma.orig(x, shape, scale=1, k)
length(n) > 1
, the length is
taken to be the number required.dgengamma.orig
gives the density, pgengamma.orig
gives the distribution
function, qgengamma.orig
gives the quantile function, rgengamma.orig
generates random deviates, Hgengamma.orig
retuns the cumulative hazard
and hgengamma.orig
the hazard.shape
$=b>0$, scale
$=a>0$,
$x$ has probability density
$$f(x | a, b, k) = \frac{b}{\Gamma(k)} \frac{x^{bk - 1}}{a^{bk}}
\exp(-(x/a)^b)$$
The original generalized gamma distribution simplifies to the gamma, exponential
and Weibull distributions with the following parameterisations:
dgengamma.orig(x, shape, scale, k=1)
=
dweibull(x, shape, scale)
dgengamma.orig(x, shape=1, scale, k)
=
dgamma(x, shape=k, scale)
dgengamma.orig(x, shape=1, scale, k=1)
=
dexp(x, rate=1/scale)
}
Also as k tends to infinity, it tends to the log normal (as in
dlnorm
) with the following parameters (Lawless, 1980):
dlnorm(x, meanlog=log(scale) + log(k)/shape, sdlog=1/(shape*sqrt(k)))
For more stable behaviour as the distribution tends to the
log-normal, an alternative parameterisation was developed by Prentice
(1974). This is given in dgengamma
, and is now
preferred for statistical modelling. It is also more flexible,
including a further new class of distributions with negative shape
k
.
The generalized F distribution GenF.orig
, and its
similar alternative parameterisation GenF
, extend the
generalized gamma to four parameters.GenGamma
, GenF.orig
, GenF
,
Lognormal
, GammaDist
, Weibull
.