Estimation of a 3-parameter log-gamma distribution described by Prentice (1974).
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"))
Parameter link function applied to the
location parameter Links
for more choices.
Initial value for
Initial value for
See CommonVGAMffArguments
for information.
See CommonVGAMffArguments
for information.
An object of class "vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
,
and vgam
.
The special case
The probability density function is given by
digamma
.
The mean of lgamma3
.
Special cases:
Prentice, R. L. (1974). A log gamma model and its maximum likelihood estimation. Biometrika, 61, 539--544.
# NOT RUN {
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
# }
Run the code above in your browser using DataLab