GithubHelp home page GithubHelp logo

guhjy / med4way Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anddis/med4way

0.0 2.0 0.0 75 KB

Stata command for the 4-way decomposition using parametric regression models

License: GNU General Public License v3.0

Stata 99.79% TeX 0.21%
stata mediation

med4way's Introduction

med4way

A Stata command for the 4-way decomposition using parametric regression models

  • Current version: 2.2.2
  • Release date: 14jun2018

Description

med4way uses parametric regression models to estimate the components of the 4-way decomposition of the total effect of a treatment on a outcome in the presence of a mediator with which the exposure may interact. This decomposition breaks down the total effect of the treatment on the outcome into components due to mediation alone, to interaction alone, to both mediation and interaction, and to neither mediation nor interaction.

med4way provides standard errors and confidence intervals for the estimated components using the delta method (default) or the bootstrap.

med4way allows continuous, binary, count or survival outcomes, and continuous or binary mediators.

Further details can be found in Discacciati et al. (2018) and in the help file.

Note: the 4-way decomposition holds without any assumptions about confounding. However, to interpret each of the components causally does require assumptions about confounding. See VanderWeele (2014) for a detailed exposition of those assumptions.

How to cite

If you use med4way, please cite the following paper:

Discacciati, A., Bellavia, A., Lee, J.J., Mazumdar, M., Valeri, L., 2018. Med4way: a Stata command to investigate mediating and interactive mechanisms using the four-way effect decomposition. International Journal of Epidemiology. CiteUlike https://doi.org/10.1093/ije/dyy236

Installation

  • To install the current version of med4way directly from GitHub, run:
net install med4way, from("https://raw.githubusercontent.com/anddis/med4way/master/") replace

from within a web-aware Stata (version 13+).

  • For older versions of Stata, download and extract the zip file and then run:
net install med4way, from(mydir) replace 

from within Stata, where mydir is the directory that containes the extracted files.

  • After installation, see the help file:
help med4way
  • To download in the current working directory the datasets needed to run the example code in the help file, type:
net get med4way, from("https://raw.githubusercontent.com/anddis/med4way/master/")

Authors

Andrea Discacciati (1), Andrea Bellavia (2,3), Linda Valeri (4)

(1) Unit of Biostatistics, Karolinska Institutet, Stockholm, Sweden (2) Department of Environmental Health, Harvard T.H. Chan School of Public Health, Boston, MA, USA (3) Department of Biostatistics, Harvard T.H. Chan School of Public Health, Boston, MA, USA (4) Department of Biostatistics, Columbia University Mailman School of Public Health, New York, NY, USA

References

Discacciati, A., Bellavia, A., Lee, J.J., Mazumdar, M., Valeri, L., 2018. Med4way: a Stata command to investigate mediating and interactive mechanisms using the four-way effect decomposition. International Journal of Epidemiology. https://doi.org/10.1093/ije/dyy236

VanderWeele, T.J., 2014. A unification of mediation and interaction: a 4-way decomposition. Epidemiology (Cambridge, Mass.), 25(5), p.749.

med4way's People

Contributors

anddis avatar guhjy avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.