ldata <- data.frame(y1 = rbeta(n = 1000, exp(0.5), exp(1))) # ~ standard beta
fit <- vglm(y1 ~ 1, lino, ldata, trace = TRUE)
coef(fit, matrix = TRUE)
Coef(fit)
head(fitted(fit))
summary(fit)
# Nonstandard beta distribution
ldata <-
transform(ldata, y2 = rlino(n = 1000, shape1 = 2, shape2 = 3, lambda = exp(1)))
fit2 <- vglm(y2 ~ 1, lino(lshape1 = identitylink,
lshape2 = identitylink, ilamb = 10),
data = ldata)
coef(fit2, matrix = TRUE)
Run the code above in your browser using DataLab