swh:1:snp:dc80812a22a7696ce24055bd58afbf9f13e3e78c
Tip revision: c81639b9efbc365dff7f4e9cf6d6f5ff01210771 authored by Friedrich Leisch on 07 September 2007, 00:00:00 UTC
version 2.0-1
version 2.0-1
Tip revision: c81639b
FLXMRziglm.Rd
\name{FLXMRziglm}
\alias{FLXMRziglm}
\alias{FLXMRziglm-class}
\alias{refit,FLXMRziglm,missing-method}
\alias{FLXRMRziglm-class}
\alias{summary,FLXRMRziglm-method}
\title{FlexMix Interface to Zero Inflated Generalized Linear Models}
\description{
This is a driver which allows fitting of zero inlated poisson and
binomial models.
}
\usage{
FLXMRziglm(formula = . ~ ., family = c("binomial", "poisson"), ...)
}
\arguments{
\item{formula}{A formula which is interpreted relative to the formula
specified in the call to \code{flexmix} using
\code{\link{update.formula}}. Default is to use the original
\code{flexmix} model
formula.}
\item{family}{A character string naming a \code{\link{glm}}
family function.}
\item{\dots}{passed to \code{FLXMRglm}}
}
\value{
Returns an object of class \code{FLXMRziglm}.
}
\author{Bettina Gruen}
\note{
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.
}
\examples{
data("dmft")
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))
}
\keyword{models}