mzip {mcount} | R Documentation |
Estimating marginalized zero-inflated Poisson model
Description
Function to estimate a marginalized zero-inflated Poisson model
Usage
mzip(formula, data)
Arguments
formula |
an object of class " |
data |
a data frame containing variables in the model. |
Details
Function returns an object of class "mle2
" from bbmle R package. Apply summary
function to the resulting object from the function to obtain more estimation information.
Value
Suffix _zero
corresponds to the parameters associated with the structrual zero rate part of a model.
Suffix _mean
corresponds to the parameters associated with the overall mean, which evaluate the effects of covariates on the overall mean.
References
Long, D. L., Preisser, J. S., Herring, A. H., & Golin, C. E. (2014). A marginalized zero‐inflated Poisson regression model with overall exposure effects. Statistics in Medicine, 33(29), 5151-5165.
Examples
head(dat.pfi)
#Fit a marginalized zero-inflated Poisson model
res = mzip(formula = y ~ m0 + int_PF + year_new + race_new, data = dat.pfi)
#Obtain estimation results
bbmle::summary(res)