ldata = data.frame(y = rlgamma(100, k = exp(1)))
fit = vglm(y ~ 1, lgammaff, ldata, trace = TRUE, crit = "coef")
summary(fit)
coef(fit, matrix = TRUE)
Coef(fit)
ldata = data.frame(x = runif(nn <- 5000)) # Another example
ldata = transform(ldata, loc = -1 + 2 * x, Scale = exp(1))
ldata = transform(ldata, y = rlgamma(nn, loc, scale = Scale, k = exp(0)))
fit2 = vglm(y ~ x, lgamma3ff(zero = 2:3), ldata, trace = TRUE, crit = "c")
coef(fit2, matrix = TRUE)
Run the code above in your browser using DataLab