More Powerful Tests of the Composite Null Hypothesis Arising in Mediation Analysis
The mediation.test
R
package implements more powerful tests of the composite null hypothesis arising in mediation analysis. It is developed by A. Chambaz (MAP5, UMR CNRS 8145, Université Paris Cité) & Caleb Miles (Department of Biostatistics, Columbia University Mailman School of Public Health).
Introduction
The mediation_test()
function of the mediation.test
package tests the composite null hypothesis “δx * δy = 0” against its alternative “δx * δy ≠ 0”.
Installation
Both a stable version and a development version are available via GitHub and can be installed in R as:
devtools::install_github("achambaz/mediation.test", ref = "main")
or
devtools::install_github("achambaz/mediation.test", ref = "develop")