Package: ria.test
Type: Package
Title: Testing Equality of Natural Mediation Effects and Their
        Randomized Interventional Analogues
Version: 0.4.0
Authors@R: 
    person(given = "Ang",
           family = "Yu",
           role = c("aut", "cre", "cph"),
           email = "ang_yu@outlook.com",
           comment = c(ORCID = "0000-0002-1828-0165"))
Maintainer: Ang Yu <ang_yu@outlook.com>
Copyright: Ang Yu (ria.test extensions), Nicholas Williams and Iván
        Díaz (code derived from crumble).
Description: 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.
License: GPL (>= 3)
Encoding: UTF-8
Depends: R (>= 4.2.0)
URL: https://github.com/ang-yu/ria.test
BugReports: https://github.com/ang-yu/ria.test/issues
Additional_repositories: https://mlr-org.r-universe.dev
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)
Config/testthat/edition: 3
Config/roxygen2/version: 8.1.1
NeedsCompilation: no
Packaged: 2026-11-17 05:50:47 UTC; Ang
Author: Ang Yu [aut, cre, cph] (ORCID: <https://orcid.org/0000-0002-1828-0165>)
Repository: CRAN
Date/Publication: 2026-11-17 08:50:02 UTC
