pospoisson(link = "loge", earg=list(),
expected=TRUE, ilambda=NULL, method.init=1)
Links
for more choices.earg
in Links
for general information.expected = TRUE
, else Newton-Raphson.NULL
means a value is computed internally.1
or 2
which
specifies the initialization method for $\lambda$.
If failure to converge occurs try another value
and/or else specify a value for ilambda
."vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
,
rrvglm
and vgam
.fitted
applied to
the object. A related distribution is the zero-inflated Poisson, in which the
probability $P[Y=0]$ involves another parameter $\phi$.
See zipoisson
.
Documentation accompanying the
Pospois
,
posnegbinomial
,
poissonff
,
zipoisson
.y = 1:6
w = c(1486, 694, 195, 37, 10, 1) # Data from Coleman and James (1961)
fit = vglm(y ~ 1, pospoisson, weights=w)
Coef(fit)
summary(fit)
fitted(fit)
# Artificial data
x = runif(n <- 1000)
lambda = exp(1 - 2*x)
y = rpospois(n, lambda)
table(y)
fit = vglm(y ~ x, pospoisson, trace=TRUE, crit="c")
coef(fit, matrix=TRUE)
Run the code above in your browser using DataLab