geometric(link = "logit", earg=list(), expected = TRUE)
Links
for more choices.earg
in Links
for general information.expected = TRUE
, else Newton-Raphson."vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
,
and vgam
.negbinomial
).negbinomial
,
Geometric
,
betageometric
,
rbetageom
.x1 = runif(n <- 1000) - 0.5
x2 = runif(n) - 0.5
x3 = runif(n) - 0.5
eta = 0.2 - 0.7 * x1 + 1.9 * x2
prob = logit(eta, inverse=TRUE)
y = rgeom(n, prob)
table(y)
fit = vglm(y ~ x1 + x2 + x3, geometric, trace=TRUE, crit="coef")
coef(fit)
coef(fit, mat=TRUE)
summary(fit)
Run the code above in your browser using DataLab