Skip to content

maczic

1.1.0Package record

Mediation Analysis for Count and Zero-Inflated Count Data

0packages depend
4.6Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Performs causal mediation analysis for count and zero-inflated count data without or with a post-treatment confounder; calculates power to detect prespecified causal mediation effects, direct effects, and total effects; performs sensitivity analysis when there is a treatment- induced mediator-outcome confounder as described by Cheng, J., Cheng, N.F., Guo, Z., Gregorich, S., Ismail, A.I., Gansky, S.A. (2018) doi:10.1177/0962280216686131. Implements Instrumental Variable (IV) method to estimate the controlled (natural) direct and mediation effects, and compute the bootstrap Confidence Intervals as described by Guo, Z., Small, D.S., Gansky, S.A., Cheng, J. (2018) doi:10.1111/rssc.12233. This software was made possible by Grant R03DE028410 from the National Institute of Dental and Craniofacial Research, a component of the National Institutes of Health.

Changes in 1.1.0
  • Added Authors@R field in the DESCRIPTION file
  • Added the missing package anchors to mediate_iv.R, mediate_zi.R and mediate_zi_vcoef.R

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.6 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.1.0
READMENoVignettesNoNEWSYes · 100% structured · mentions 1.1.0Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
7includes a package overview page
Examples that run
100%5 run in a plain check
Exported functions with examples
100%
Documented parameters
95%
Return-value docs
100%
Help pages citing references
71%

Downloads

4.6K
CRAN downloads in the past year
Rank #17,825 · ~13/day · ~387/mo
Daily download trend is not available in this view yet.
24330 days
72890 days
4.6K1 year
Compare downloads with other packages →
Also on71 r2u4 autocran

Dependencies

Declared dependencies
7 external dependencies (excludes base and recommended)

Installing maczic adds 72 packages (40 with compiled code, 76 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.

Depends (4)
R >= 4.0MASSpsclgraphics
Imports (7)
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (3)
Author, Maintainer since 0.1.0 (2020)
Releases (4)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.1.0Latest
    record
    2025-08-19 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0.0
    record
    2023-09-11 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.2.0
    record
    2021-04-23 · diff ↗
  • 0.1.0
    record
    2020-11-09
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2020-11-09
Total releases
4 / 6 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 4.0
Bundled data
0.7 KB / 1 file
Download size
302 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("maczic")
Cheng, N., Cheng, J., & Guo, Z. (2026). maczic: Mediation Analysis for Count and Zero-Inflated Count Data (Version 1.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.maczic

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for maczic version 1.1.0 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy