Package: mzipmed 1.4.0

mzipmed: 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 <doi:10.1002/sim.6293>). 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.

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

mzipmed_1.4.0.tar.gz
mzipmed_1.4.0.zip(r-4.5)mzipmed_1.4.0.zip(r-4.4)mzipmed_1.4.0.zip(r-4.3)
mzipmed_1.4.0.tgz(r-4.5-any)mzipmed_1.4.0.tgz(r-4.4-any)mzipmed_1.4.0.tgz(r-4.3-any)
mzipmed_1.4.0.tar.gz(r-4.5-noble)mzipmed_1.4.0.tar.gz(r-4.4-noble)
mzipmed_1.4.0.tgz(r-4.4-emscripten)mzipmed_1.4.0.tgz(r-4.3-emscripten)
mzipmed.pdf |mzipmed.html
mzipmed/json (API)

# Install 'mzipmed' in R:
install.packages('mzipmed', repos = c('https://ams329.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ams329/mzipmed/issues

Datasets:
  • mzipmed_data - Data to be used in the mzipmed package examples

On CRAN:

Conda:

3.00 score 1 stars 2 scripts 269 downloads 9 exports 5 dependencies

Last updated 2 years agofrom:4cdb39639c. Checks:3 OK, 5 NOTE. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKFeb 26 2025
R-4.5-winNOTEFeb 26 2025
R-4.5-macNOTEFeb 26 2025
R-4.5-linuxNOTEFeb 26 2025
R-4.4-winNOTEFeb 26 2025
R-4.4-macNOTEFeb 26 2025
R-4.3-winOKFeb 26 2025
R-4.3-macOKFeb 26 2025

Exports:binoutzimedbinoutzimedintlmoutzimedlmoutzimedintmzipzioutbinmedzioutbinmedintzioutlmmedzioutlmmedint

Dependencies:latticeMASSmatrixStatssandwichzoo

Introduction to the mzipmed R package

Rendered frommzipmed-vignette.Rmdusingknitr::rmarkdownon Feb 26 2025.

Last update: 2023-07-07
Started: 2023-04-19