pdat = data.frame(x = runif(nn <- 1000))
pdat = transform(pdat, loc = -1 + 2*x, Scale = exp(1))
pdat = transform(pdat, y = rlgamma(nn, loc = loc, scale = Scale, k = 1))
fit = vglm(y ~ x, prentice74(zero = 2:3), pdat, trace = TRUE)
coef(fit, matrix = TRUE) # Note the coefficients for location
Run the code above in your browser using DataLab