ldat1 = data.frame(y = rbeta(n=1000, exp(0.5), exp(1))) # ~ standard beta
fit = vglm(y ~ 1, lino, ldat1, trace=TRUE)
coef(fit, mat=TRUE)
Coef(fit)
head(fitted(fit))
summary(fit)
# Nonstandard beta distribution
ldat2 = data.frame(y = rlino(n=1000, shape1=2, shape2=3, lambda=exp(1)))
fit = vglm(y~1, lino(lshape1=identity, lshape2=identity, ilamb=10), ldat2)
coef(fit, mat=TRUE)
Run the code above in your browser using DataLab