Last chance! 50% off unlimited learning
Sale ends in
exppoisson(lrate = "loge", lshape = "loge",
irate = 2, ishape = 1.1, zero = NULL)
Links
for more choices.shape
and rate
parameters.
Currently this function is not intelligent enough to
obtain better initial values."vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
and vgam
.hypergeo
package
(to use their genhypergeo
function).
The median is returned as the fitted value.dexppois
,
exponential
,
poisson
.shape <- exp(1); rate <- exp(2)
rdata <- data.frame(y = rexppois(n = 1000, rate = rate, shape = shape))
library("hypergeo") # Required!
fit <- vglm(y ~ 1, exppoisson, data = rdata, trace = FALSE, maxit = 1200)
c(with(rdata, median(y)), head(fitted(fit), 1))
coef(fit, matrix = TRUE)
Coef(fit)
summary(fit)
Run the code above in your browser using DataLab