Learn R Programming

MultisiteMediation (version 0.0.4)

Causal Mediation Analysis in Multisite Trials

Description

Multisite causal mediation analysis using the methods proposed by Qin and Hong (2017) , Qin, Hong, Deutsch, and Bein (2019) , and Qin, Deutsch, and Hong (2021) . It enables causal mediation analysis in multisite trials, in which individuals are assigned to a treatment or a control group at each site. It allows for estimation and hypothesis testing for not only the population average but also the between-site variance of direct and indirect effects transmitted through one single mediator or two concurrent (conditionally independent) mediators. This strategy conveniently relaxes the assumption of no treatment-by-mediator interaction while greatly simplifying the outcome model specification without invoking strong distributional assumptions. This package also provides a function that can further incorporate a sample weight and a nonresponse weight for multisite causal mediation analysis in the presence of complex sample and survey designs and non-random nonresponse, to enhance both the internal validity and external validity. The package also provides a weighting-based balance checking function for assessing the remaining overt bias.

Copy Link

Version

Install

install.packages('MultisiteMediation')

Monthly Downloads

239

Version

0.0.4

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Xu Qin

Last Published

September 5th, 2021

Functions in MultisiteMediation (0.0.4)

msmediate.weights

Causal mediation analysis in multisite trials in the presence of complex sample and survey designs and non-random nonresponse
msmediate.concurrent

Complex multisite causal mediation analysis with two concurrent mediators in the presence of complex sample and survey designs and non-random nonresponse
vartest.msmediate.concurrent

Variance testing for complex multisite causal mediation analysis with two concurrent mediators in the presence of complex sample and survey designs and non-random nonresponse
sim.weights

A simulated example data
vartest.msmediate

Variance testing for multisite causal mediation analysis
balance

Balance checking for causal mediation analysis in multisite trials
sim

A simulated example data
vartest.msmediate.weights

Variance testing for multisite causal mediation analysis in the presence of complex sample and survey designs and non-random nonresponse
msmediate

Causal mediation analysis in multisite trials