Last chance! 50% off unlimited learning
Sale ends in
benini1(y0 = stop("argument 'y0' must be specified"), lshape = "loge",
ishape = NULL, imethod = 1, zero = NULL)
Links
for more choices.
A log link is the default because $b$ is positive.CommonVGAMffArguments
."vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
,
and vgam
.
On fitting, the extra
slot has a component called
y0
which contains the value of the y0
argument.
Benini
.y0 <- 1; nn <- 3000
bdata <- data.frame(y = rbenini(nn, y0 = y0, shape = exp(2)))
fit <- vglm(y ~ 1, benini1(y0 = y0), data = bdata, trace = TRUE)
coef(fit, matrix = TRUE)
Coef(fit)
fit@extra$y0
c(head(fitted(fit), 1), with(bdata, median(y))) # Should be equal
Run the code above in your browser using DataLab