FLXMRziglm | R Documentation |
This is a driver which allows fitting of zero inflated poisson and binomial models.
FLXMRziglm(formula = . ~ ., family = c("binomial", "poisson"), ...)
formula |
A formula which is interpreted relative to the formula
specified in the call to |
family |
A character string naming a |
... |
passed to |
Returns an object of class FLXMRziglm
inheriting from FLXMRglm
.
In fact this only approximates zero inflated models by fixing the coefficient of the intercept at -Inf and the other coefficients at zero for the first component.
Friedrich Leisch and Bettina Gruen
data("dmft", package = "flexmix")
Model <- FLXMRziglm(family = "poisson")
Fitted <- flexmix(End ~ log(Begin + 0.5) + Gender + Ethnic + Treatment,
model = Model, k = 2 , data = dmft,
control = list(minprior = 0.01))
summary(refit(Fitted))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.