prentice74 {VGAM} | R Documentation |
Prentice (1974) Log-gamma Distribution
Description
Estimation of a 3-parameter log-gamma distribution described by Prentice (1974).
Usage
prentice74(llocation = "identitylink", lscale = "loglink",
lshape = "identitylink", ilocation = NULL, iscale = NULL,
ishape = NULL, imethod = 1,
glocation.mux = exp((-4:4)/2), gscale.mux = exp((-4:4)/2),
gshape = qt(ppoints(6), df = 1), probs.y = 0.3,
zero = c("scale", "shape"))
Arguments
llocation , lscale , lshape |
Parameter link function applied to the
location parameter |
ilocation , iscale |
Initial value for |
ishape |
Initial value for |
imethod , zero |
See |
glocation.mux , gscale.mux , gshape , probs.y |
See |
Details
The probability density function is given by
for shape parameter ,
positive scale parameter
,
location parameter
,
and all real
.
Here,
where
is the digamma function,
digamma
.
The mean of is
(returned as the fitted values).
This is a different parameterization compared to
lgamma3
.
Special cases:
is the normal distribution with standard deviation
,
is the extreme value distribution for maximums,
is the extreme value distribution for minima (Weibull).
If
then the distribution is left skew,
else
is right skew.
Value
An object of class "vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
,
and vgam
.
Warning
The special case is not handled, therefore
estimates of
too close to zero may cause numerical problems.
Note
The notation used here differs from Prentice (1974):
,
.
Fisher scoring is used.
Author(s)
T. W. Yee
References
Prentice, R. L. (1974). A log gamma model and its maximum likelihood estimation. Biometrika, 61, 539–544.
See Also
lgamma3
,
lgamma
,
gengamma.stacy
.
Examples
pdata <- data.frame(x2 = runif(nn <- 1000))
pdata <- transform(pdata, loc = -1 + 2*x2, Scale = exp(1))
pdata <- transform(pdata, y = rlgamma(nn, loc = loc, scale = Scale, shape = 1))
fit <- vglm(y ~ x2, prentice74(zero = 2:3), data = pdata, trace = TRUE)
coef(fit, matrix = TRUE) # Note the coefficients for location