mckaygamma2(la = "loge", lp = "loge", lq = "loge",
ia = NULL, ip = 1, iq = 1, zero = NULL)
Links
for more choices.ip
and iq
."vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
and vgam
.gamma
.
By default, the linear/additive predictors are
$\eta_1=\log(a)$,
$\eta_2=\log(p)$,
$\eta_3=\log(q)$. Although Fisher scoring and Newton-Raphson coincide for this
distribution, faster convergence may be obtained by choosing
better values for the arguments ip
and iq
.
Kotz, S. and Balakrishnan, N. and Johnson, N. L. (2000) Continuous Multivariate Distributions Volume 1: Models and Applications, 2nd edition, New York: Wiley.
gamma2
.y1 = rgamma(n <- 200, shape=4)
y2 = rgamma(n, shape=8)
ymat = cbind(y1,y2)
fit = vglm(ymat ~ 1, fam=mckaygamma2, trace=TRUE)
coef(fit, matrix=TRUE)
Coef(fit)
vcov(fit)
head(fitted(fit))
summary(fit)
Run the code above in your browser using DataLab