gdata <- data.frame(x2 = runif(nn <- 1000))
gdata <- transform(gdata, eta1  = -1,
                          eta2  = -1 + 0.1 * x2,
                          ceta1 =  0,
                          ceta2 =  1)
gdata <- transform(gdata, shape1 = exp(eta1),
                          shape2 = exp(eta2),
                          scale1 = exp(ceta1),
                          scale2 = exp(ceta2))
gdata <- transform(gdata,
           y1 = rgumbelII(nn, shape = shape1, scale = scale1),
           y2 = rgumbelII(nn, shape = shape2, scale = scale2))
fit <- vglm(cbind(y1, y2) ~ x2,
            gumbelII(zero = c(1, 2, 4)), gdata, trace = TRUE)
coef(fit, matrix = TRUE)
vcov(fit)
summary(fit)Run the code above in your browser using DataLab