Last chance! 50% off unlimited learning
Sale ends in
Estimating the parameter of Haight's zeta distribution
hzeta(lshape = "logloglink", ishape = NULL, nsimEIM = 100)
Parameter link function for the parameter,
called Links
for more choices.
Here, a log-log link keeps the parameter greater than one, meaning
the mean is finite.
See CommonVGAMffArguments
for more information.
An object of class "vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
and vgam
.
The probability function is
dhzeta
computes this probability function.
The mean of
Johnson N. L., Kemp, A. W. and Kotz S. (2005). Univariate Discrete Distributions, 3rd edition, pp.533--4. Hoboken, New Jersey: Wiley.
Hzeta
,
zeta
,
zetaff
,
loglog
,
simulate.vlm
.
# NOT RUN {
shape <- exp(exp(-0.1)) # The parameter
hdata <- data.frame(y = rhzeta(n = 1000, shape))
fit <- vglm(y ~ 1, hzeta, data = hdata, trace = TRUE, crit = "coef")
coef(fit, matrix = TRUE)
Coef(fit) # Useful for intercept-only models; should be same as shape
c(with(hdata, mean(y)), head(fitted(fit), 1))
summary(fit)
# }
Run the code above in your browser using DataLab