Published August 16, 2026 | Version v1.0.0

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 simulation
  • alternative_case.R: runs the alternative-scenario simulation
  • simulate_data.R: generates simulated data
  • Outcome_model_fit.R: fits penalized outcome models
  • estimate_IIE.R: estimates the IIE
  • bootstrap.R: generates bootstrap estimates
  • estimate_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

Files (19.9 kB)

Name Size
md5:81c738a2de4711702dfcc7bfe289ab25
19.9 kB Preview Download

Additional details

Related works