ria.test: Testing Equality of Natural Mediation Effects and Their Randomized Interventional Analogues

Implements the empirical test introduced by Yu, Ge, and Elwert (2026) for detecting when randomized interventional analogues should not be interpreted as natural mediation effects. The package estimates natural effects, their randomized interventional analogues, and TE - TE^R, the difference between the total effect and its randomized interventional analogue. Rejecting TE - TE^R = 0 falsifies the composite null that the natural indirect and direct effects equal their randomized interventional analogues. The procedure remains valid in settings where the natural effects themselves are not identified, and |TE - TE^R| provides a lower bound on the total divergence between the natural and randomized interventional decompositions.

Version: 0.2.1
Depends: R (≥ 4.2.0)
Imports: checkmate, Matrix, origami, torch, Rsymphony, purrr, cli, S7, data.table, coro, generics, mlr3superlearner, progressr, ife (≥ 0.2.1)
Suggests: testthat (≥ 3.0.0)
Published: 2026-07-21
DOI: 10.32614/CRAN.package.ria.test (may not be active yet)
Author: Ang Yu [aut, cre, cph] (Author and copyright holder of ria.test-specific extensions), Nicholas Williams ORCID iD [aut, cph] (Author and copyright holder of code derived from crumble), Richard Liu [ctb] (Contributor to code derived from crumble), Iván Díaz ORCID iD [aut, cph] (Author and copyright holder of code derived from crumble)
Maintainer: Ang Yu <ang_yu at outlook.com>
BugReports: https://github.com/ang-yu/ria.test/issues
License: GPL (≥ 3)
URL: https://github.com/ang-yu/ria.test
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: ria.test results

Documentation:

Reference manual: ria.test.html , ria.test.pdf

Downloads:

Package source: ria.test_0.2.1.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): ria.test_0.2.1.tgz, r-oldrel (arm64): ria.test_0.2.1.tgz, r-release (x86_64): ria.test_0.2.1.tgz, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=ria.test to link to this page.