Causal Mediation Analysis for Stochastic Interventions

Authors: Nima Hejazi and Iván Díaz


What’s medshift?

The medshift R package is designed to provide facilities for estimating direct and indirect effects of stochastic interventions in settings in which causal mediation analysis is of interest. medshift is designed as an implementation to accompany the methods described in “Causal mediation analysis for stochastic interventions” (Díaz and Hejazi, n.d.).


Installation

Install the most recent stable release from GitHub via devtools:

devtools::install_github("nhejazi/medshift", build_vignettes = FALSE)

Example

Forthcoming…


Issues

If you encounter any bugs or have any specific feature requests, please file an issue.


Contributions

Contributions are very welcome. Interested contributors should consult our contribution guidelines prior to submitting a pull request.


Citation

After using the medshift R package, please cite the following:

    @article{diaz2018+causal,
      title={Causal mediation analysis for stochastic interventions},
      author={D{\'\i}az, Iv{\'a}n and Hejazi, Nima S},
      journal={},
      volume={},
      number={},
      pages={},
      year={2018+},
      publisher={}
    }

    @manual{hejazi2018+medshift,
      author = {Hejazi, Nima S and D{\'\i}az, Iv{\'a}n},
      title = {{medshift}: Causal mediation analysis for stochastic
        interventions in {R}},
      year  = {2018+},
      url = {https://github.com/nhejazi/medshift},
      note = {R package version 0.0.1}
    }

License

© 2018 Nima S. Hejazi

The contents of this repository are distributed under the MIT license. See below for details:

MIT License

Copyright (c) 2018 Nima S. Hejazi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

References

Díaz, Iván, and Nima S Hejazi. n.d. “Causal Mediation Analysis for Stochastic Interventions.”