MultisiteMediation 0.0.2
Causal Mediation Analysis in Multisite Trials
Released Jun 15, 2018 by Xu Qin
This package can be loaded by Renjin but all tests failed.
Dependencies
statmod 1.4.30
ggplot2 3.0.0
MASS 7.3-50
psych 1.8.4
lme4 1.1-18-1
We implement multisite causal mediation analysis using the methods proposed by Qin and Hong (2017) and Qin, Hong, Deutsch, and Bein (under review). 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. 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. Because the identification assumptions are not always warranted, the package also provides a weighting-based balance checking function for assessing the remaining overt bias, as well as a weighting-based sensitivity analysis function for further evaluating the potential bias related to omitted confounding or to propensity score model misspecification.
Installation
Maven
This package can be included as a dependency from a Java or Scala project by including
the following your project's pom.xml
file.
Read more
about embedding Renjin in JVM-based projects.
<dependencies>
<dependency>
<groupId>org.renjin.cran</groupId>
<artifactId>MultisiteMediation</artifactId>
<version>0.0.2-b1</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>bedatadriven</id>
<name>bedatadriven public repo</name>
<url>https://nexus.bedatadriven.com/content/groups/public/</url>
</repository>
</repositories>
View build log
Renjin CLI
If you're using Renjin from the command line, you load this library by invoking:
library('org.renjin.cran:MultisiteMediation')
Test Results
This package was last tested against Renjin 0.9.2689
on Aug 26, 2018.