unvs.med: A Universal Approach for Causal Mediation Analysis

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.

Getting started

Package details

AuthorTianbao Zhou [aut, cre], Xinghao Li [aut], Lin Liu* [aut]
MaintainerTianbao Zhou <michaelzhou@buaa.edu.cn>
LicenseGPL-3
Version1.0.0
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("unvs.med")

Try the unvs.med package in your browser

Any scripts or data that you put into this service are public.

unvs.med documentation built on June 8, 2025, 10:15 a.m.