Published August 16, 2026
| Version v1.0.0
Software
Open
YX-ZHANG-1/CausalMediationMicrobiome: Code used for the Bioinformatics manuscript
Authors/Creators
Description
Overview
This release contains the R code supporting the simulation studies presented in the manuscript Inverse Probability Weighting-Based Mediation Analysis for Microbiome Data.
Included
- Data generation for binary exposure, binary exposure-induced mediator-outcome confounding, clr-transformed compositional mediators, and binary outcomes
- Null-scenario simulations for evaluating bias, standard deviation, RMSE, and type I error
- Alternative-scenario simulations for evaluating bias, standard deviation, RMSE, and statistical power
- Penalized outcome-model estimation using SCAD, MCP, or lasso
- Inverse probability weighting estimation of the interventional indirect effect
- Bootstrap-based standard errors and confidence intervals
- Large-sample approximation of the true IIE under the alternative scenario
- Parallel-computing support
- A pseudo-dataset containing baseline covariates for reproducible execution
Main scripts
null_case.R: runs the null-scenario simulationalternative_case.R: runs the alternative-scenario simulationsimulate_data.R: generates simulated dataOutcome_model_fit.R: fits penalized outcome modelsestimate_IIE.R: estimates the IIEbootstrap.R: generates bootstrap estimatesestimate_true_value_of_IIE.R: approximates the true IIE
Important notes
- The included baseline-covariate file is pseudo-data used in place of the real study data.
- Package requirements and execution instructions are provided in
README.md.
License
The software is distributed under the MIT License.
Files
YX-ZHANG-1/CausalMediationMicrobiome-v1.0.0.zip
Additional details
Related works
- Is supplement to
- Software: https://github.com/YX-ZHANG-1/CausalMediationMicrobiome/tree/v1.0.0 (URL)
Software
- Repository URL
- https://github.com/YX-ZHANG-1/CausalMediationMicrobiome