Last chance! 50% off unlimited learning
Sale ends in
Estimates the parameter of the 1-truncated zeta distribution.
otzeta(lshape = "loglink", ishape = NULL, gshape = exp((-4:3)/4), zero = NULL)
Same as zetaff
.
An object of class "vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
,
and vgam
.
The 1-truncated zeta distribution is the ordinary zeta
distribution but with the probability of one being 0. Thus the
other probabilities are scaled up (i.e., divided by zetaff
.
Multiple responses are handled.
# NOT RUN {
odata <- data.frame(x2 = runif(nn <- 1000)) # Artificial data
odata <- transform(odata, shape = loglink(-0.25 + x2, inverse = TRUE))
odata <- transform(odata, y1 = rotzeta(nn, shape))
with(odata, table(y1))
ofit <- vglm(y1 ~ x2, otzeta, data = odata, trace = TRUE, crit = "coef")
coef(ofit, matrix = TRUE)
# }
Run the code above in your browser using DataLab