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

Implements the empirical test introduced by Yu, Ge, and Elwert (2025) <doi:10.48550/arXiv.2407.02671> 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. The package is built on 'crumble', authored by Nicholas Williams, Richard Liu, and Iván Díaz.

Version: 0.4.0
Depends: R (≥ 4.2.0)
Imports: checkmate, Matrix, origami, torch, Rsymphony, purrr, cli, S7, data.table, coro, generics, mlr3superlearner (≥ 0.1.2), lightgbm, earth, nnet, progressr, ife (≥ 0.2.5)
Suggests: mlr3extralearners, testthat (≥ 3.0.0)
Published: 2026-11-17
DOI: 10.32614/CRAN.package.ria.test
Author: Ang Yu ORCID iD [aut, cre, cph]
Maintainer: Ang Yu <ang_yu at outlook.com>
BugReports: https://github.com/ang-yu/ria.test/issues
License: GPL (≥ 3)
Copyright: Ang Yu (ria.test extensions), Nicholas Williams and Iván Díaz (code derived from crumble).
URL: https://github.com/ang-yu/ria.test
NeedsCompilation: no
Additional_repositories: https://mlr-org.r-universe.dev
Materials: README, NEWS
CRAN checks: ria.test results

Documentation:

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

Downloads:

Package source: ria.test_0.4.0.tar.gz
Windows binaries: r-devel: ria.test_0.4.0.zip, r-release: ria.test_0.3.0.zip, r-oldrel: ria.test_0.3.0.zip
macOS binaries: r-release (arm64): ria.test_0.4.0.tgz, r-oldrel (arm64): ria.test_0.4.0.tgz, r-release (x86_64): ria.test_0.4.0.tgz, r-oldrel (x86_64): ria.test_0.4.0.tgz
Old sources: ria.test archive

Linking:

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