Maximum likelihood estimation of the 2-parameter Gumbel-II distribution.
gumbelII(lscale = "loglink", lshape = "loglink", iscale = NULL, ishape = NULL,
probs.y = c(0.2, 0.5, 0.8), perc.out = NULL, imethod = 1,
zero = "shape", nowarning = FALSE)
Logical. Suppress a warning?
Parameter link functions applied to the
(positive) shape parameter (called Links
for more choices.
Optional initial values for the shape and scale parameters.
See weibullR
.
Details at CommonVGAMffArguments
.
If the fitted values are to be quantiles then set this argument to be the percentiles of these, e.g., 50 for median.
An object of class "vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
,
and vgam
.
The Gumbel-II density for a response weibullR
, and is
due to Gumbel (1954).
This VGAM family function currently does not handle censored data. Fisher scoring is used to estimate the two parameters. Probably similar regularity conditions hold for this distribution compared to the Weibull distribution.
Gumbel, E. J. (1954). Statistical theory of extreme values and some practical applications. Applied Mathematics Series, volume 33, U.S. Department of Commerce, National Bureau of Standards, USA.
# NOT RUN {
gdata <- data.frame(x2 = runif(nn <- 1000))
gdata <- transform(gdata, heta1 = +1,
heta2 = -1 + 0.1 * x2,
ceta1 = 0,
ceta2 = 1)
gdata <- transform(gdata, shape1 = exp(heta1),
shape2 = exp(heta2),
scale1 = exp(ceta1),
scale2 = exp(ceta2))
gdata <- transform(gdata,
y1 = rgumbelII(nn, scale = scale1, shape = shape1),
y2 = rgumbelII(nn, scale = scale2, shape = shape2))
fit <- vglm(cbind(y1, y2) ~ x2,
gumbelII(zero = c(1, 2, 3)), data = gdata, trace = TRUE)
coef(fit, matrix = TRUE)
vcov(fit)
summary(fit)
# }
Run the code above in your browser using DataLab