poissonp(ostatistic, dimension=2, link="loge", earg=list(),
idensity=NULL, method.init=1)
Links
for more choices.earg
in Links
for general information.NULL
value means a value is obtained internally.
Use this argument if convergence failure occurs.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 idensity
."vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
,
rrvglm
and vgam
.Formulae such as the means have not been fully checked.
ostatistic
.
Similarly, suppose the number of points in any volume $V$ is a
Poisson random variable with mean
$\lambda V$ where, once again, $\lambda$
is the density of the points.
This ostatistic
and using
dimension=3
.
The mean of $D_u$ is returned as the fitted values. Newton-Raphson is the same as Fisher-scoring.
poissonff
.pdat = data.frame(y = rgamma(10, shape=exp(-1))) # Not good data!
os = 2
fit = vglm(y ~ 1, poissonp(os, 2), pdat, tra=TRUE, crit="c")
fit = vglm(y ~ 1, poissonp(os, 3), pdat, tra=TRUE, crit="c") # Slow convergence?
fit = vglm(y ~ 1, poissonp(os, 3, idensi=1), pdat, trace=TRUE, crit="c")
head(fitted(fit))
with(pdat, mean(y))
coef(fit, matrix = TRUE)
Coef(fit)
Run the code above in your browser using DataLab