flexmix (version 2.3-19)

FLXMRziglm: FlexMix Interface to Zero Inflated Generalized Linear Models

Description

This is a driver which allows fitting of zero inflated poisson and binomial models.

Usage

FLXMRziglm(formula = . ~ ., family = c("binomial", "poisson"), ...)

Value

Returns an object of class FLXMRziglm inheriting from FLXMRglm.

Arguments

formula

A formula which is interpreted relative to the formula specified in the call to flexmix using update.formula. Default is to use the original flexmix model formula.

family

A character string naming a glm family function.

...

passed to FLXMRglm

Author

Friedrich Leisch and Bettina Gruen

Examples

Run this code
  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))

Run the code above in your browser using DataLab