Mediation using MZIP Model

We implement functions allowing for mediation analysis to be performed in cases where the mediator is a count variable with excess zeroes. First a function is provided allowing users to perform analysis for zero-inflated count variables using the marginalized zero-inflated Poisson (MZIP) model (Long et al. 2014 ). Using the counterfactual approach to mediation and MZIP we can obtain natural direct and indirect effects for the overall population. Using delta method processes variance estimation can be performed instantaneously. Alternatively, bootstrap standard errors can be used. We also provide functions for cases with exposure-mediator interactions with four-way decomposition of total effect.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("mzipmed")

1.4.0 by Andrew Sims, 3 years ago


Browse source code at https://github.com/cran/mzipmed


Authors: Andrew Sims [aut, cre] , Dustin Long [aut] , Hemant Tiwari [aut] , Leann Long [aut]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports MASS, stats, matrixStats, sandwich

Suggests rmarkdown, knitr


See at CRAN