Last chance! 50% off unlimited learning
Sale ends in
zetaff(link = "loge", earg=list(), init.p = NULL)
earg
in Links
for general information."vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
,
rrvglm
and vgam
.It appears that good initial values are needed for successful convergence. If convergence is not obtained, try several values ranging from values near 0 to values about 10 or more.
Knight, K. (2000) Mathematical Statistics. Boca Raton: Chapman & Hall/CRC Press.
zeta
,
dzeta
,
hzeta
,
zipf
.Documentation accompanying the
y = 1:5 # Knight, p.304
w = c(63, 14, 5, 1, 2)
fit = vglm(y ~ 1, zetaff, trace=TRUE, wei=w, crit="c")
(phat = Coef(fit)) # 1.682557
cbind(dzeta(y, phat) * sum(w), w)
weighted.mean(y, w)
fitted(fit, mat=FALSE)
predict(fit)
# MLE should satisfy the following:
mean(log(rep(y, w))) + zeta(1+phat, deriv=1)/zeta(1+phat) # Should be 0
Run the code above in your browser using DataLab