medflex: An R Package for Flexible Mediation Analysis using Natural Effect Models
Johan Steen,
Tom Loeys,
Beatrijs Moerkerke and
Stijn Vansteelandt
Journal of Statistical Software, 2017, vol. 076, issue i11
Abstract:
Mediation analysis is routinely adopted by researchers from a wide range of applied disciplines as a statistical tool to disentangle the causal pathways by which an exposure or treatment affects an outcome. The counterfactual framework provides a language for clearly defining path-specific effects of interest and has fostered a principled extension of mediation analysis beyond the context of linear models. This paper describes medflex, an R package that implements some recent developments in mediation analysis embedded within the counterfactual framework. The medflex package offers a set of ready-made functions for fitting natural effect models, a novel class of causal models which directly parameterize the path-specific effects of interest, thereby adding flexibility to existing software packages for mediation analysis, in particular with respect to hypothesis testing and parsimony. In this paper, we give a comprehensive overview of the functionalities of the medflex package.
Date: 2017-02-27
References: View references in EconPapers View complete reference list from CitEc
Citations: View citations in EconPapers (11)
Downloads: (external link)
https://www.jstatsoft.org/index.php/jss/article/view/v076i11/v76i11.pdf
https://www.jstatsoft.org/index.php/jss/article/do ... medflex_0.6-1.tar.gz
https://www.jstatsoft.org/index.php/jss/article/do ... ile/v076i11/v76i11.R
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:jss:jstsof:v:076:i11
DOI: 10.18637/jss.v076.i11
Access Statistics for this article
Journal of Statistical Software is currently edited by Bettina Grün, Edzer Pebesma and Achim Zeileis
More articles in Journal of Statistical Software from Foundation for Open Access Statistics
Bibliographic data for series maintained by Christopher F. Baum ().