Learn R Programming

maczic (version 1.0.0)

Mediation Analysis for Count and Zero-Inflated Count Data

Description

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) . 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) . 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.

Copy Link

Version

Install

install.packages('maczic')

Monthly Downloads

155

Version

1.0.0

License

GPL (>= 2)

Maintainer

Nancy Cheng

Last Published

September 11th, 2023

Functions in maczic (1.0.0)

plot_sensitivity

Plot Sensitivity Graph
mediate_zi_vcoef

Mediation Sensitivity Analysis for Count and Zero-Inflated Count Data with a Post-Treatment Confounder
maczic_power

Power Calculation for Mediation Analysis with Count and Zero-Inflated Count Data
mediate_zi

Mediation Analysis for Count and Zero-Inflated Count Data
maczic

maczic: Mediation Analysis for Count and Zero-inflated Count Data.
mediate_iv

Mediation Analysis for Count and Zero-Inflated Count Data Using Instrumental Variable Method
midvd_bt100

Example Data for mediate_zi_vcoef, plot_sensitivity and mediate_iv Functions