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