Last chance! 50% off unlimited learning
Sale ends in
hzeta(link = "loglog", earg=list(), init.alpha = NULL)
Links
for more choices.
Here, a log-log link keeps the parameter greater than one, meaning
the mean is finite.earg
in Links
for general information."vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
and vgam
.dhzeta
computes this probability function.
The mean of $Y$, which is returned as fitted values, is
$(1-2^{-\alpha}) \zeta(\alpha)$
provided $\alpha > 1$, where $\zeta$ is
Riemann's zeta function.
The mean is a decreasing function of $\alpha$.
The mean is infinite if $\alpha \leq 1$, and
the variance is infinite if $\alpha \leq 2$.Hzeta
,
zeta
,
zetaff
,
loglog
.alpha = exp(exp(0.5)) # The parameter
y = rhzeta(n=1000, alpha) # Generate some hzeta random variates
fit = vglm(y ~ 1, hzeta, trace = TRUE, crit="c")
coef(fit, matrix=TRUE)
Coef(fit) # Useful for intercept-only models; should be same as alpha
fitted(fit)[1:4,]
Run the code above in your browser using DataLab