Package: unvs.med
Title: A Universal Approach for Causal Mediation Analysis
Version: 1.1.0
Date: 2026-01-27
Authors@R: c(person(given = "Tianbao", family = "Zhou", role = c("aut", "cre"),
                    email = "michaelzhou@buaa.edu.cn"),
             person("Xinghao", "Li", role="aut", email="lixinghao@bjfu.edu.cn"),
             person("Lin", "Liu*", role="aut", email="liulin@pku.edu.cn"))
Description: 
    This program realizes a universal estimation approach that accommodates
    multi-category variables and effect scales, making up for the deficiencies
    of the existing approaches when dealing with non-binary exposures and
    complex models. The estimation via bootstrapping can simultaneously provide results of
    causal mediation on risk difference (RD), odds ratio (OR) and risk ratio (RR) scales with tests of the effects' difference.
    The estimation is also applicable to many other settings, e.g., moderated mediation, inconsistent covariates,
    panel data, etc. The high flexibility and compatibility
    make it possible to apply for any type of model, greatly meeting the needs of
    current empirical researches.
Depends: R (>= 3.5.0), data.table, parallel, snowfall
Suggests: fixest, lme4, MASS, ordinal, pglm,
License: GPL-3
Encoding: UTF-8
LazyLoad: yes
LazyData: true
NeedsCompilation: no
RoxygenNote: 7.3.2
Repository: CRAN
Config/build/clean-install: true
Config/check/use_internal_timestamps: true
Packaged: 2026-01-27 08:39:32 UTC; ZTB
Author: Tianbao Zhou [aut, cre],
  Xinghao Li [aut],
  Lin Liu* [aut]
Maintainer: Tianbao Zhou <michaelzhou@buaa.edu.cn>
Date/Publication: 2026-01-27 09:20:02 UTC
Built: R 4.6.0; ; 2026-04-25 23:00:51 UTC; unix
