Code to reproduce the results reported in "Nonparametric causal mediation analysis for stochastic interventional (in)direct effects" by N.S. Hejazi, K.E. Rudolph, M.J. van der Laan, and I. Díaz in Biostatistics (2022)
- To reproduce the simulation study reported in the manuscript, examine the
simulation
subdirectory and the comments in the includedREADME.md
. - To assess the data analysis results reported in the manuscript, examine the
application
subdirectory and the code it contains. The data from the X:BOT trial has not (yet) been released due to data sharing agreements; however, the exactR
code applied to the dataset is included in this subdirectory.
Note that both directories reference the intmedlite
auxiliary R
package,
which provides the estimation machinery used for the both the simulation studies
and real-world data analysis. To support accessibility of the methodology, the
functionality from this auxiliary package is presently in the process of being
incorporated into our medshift
package;
this note will be updated to point to that functionality once initial
integration and testing have been completed.
Should any concerns arise, please file an issue with a clear description of the problem encountered.