CRAN/E | regmedint

regmedint

Regression-Based Causal Mediation Analysis with Interaction and Effect Modification Terms

Installation

About

This is an extension of the regression-based causal mediation analysis first proposed by Valeri and VanderWeele (2013) doi:10.1037/a0031034 and Valeri and VanderWeele (2015) doi:10.1097/EDE.0000000000000253). It supports including effect measure modification by covariates(treatment-covariate and mediator-covariate product terms in mediator and outcome regression models) as proposed by Li et al (2023) doi:10.1097/EDE.0000000000001643. It also accommodates the original 'SAS' macro and 'PROC CAUSALMED' procedure in 'SAS' when there is no effect measure modification. Linear and logistic models are supported for the mediator model. Linear, logistic, loglinear, Poisson, negative binomial, Cox, and accelerated failure time (exponential and Weibull) models are supported for the outcome model.

kaz-yos.github.io/regmedint/
Bug report File report

Key Metrics

Version 1.0.1
R ≥ 2.10
Published 2024-01-13 97 days ago
Needs compilation? no
License GPL-2
CRAN checks regmedint results

Downloads

Yesterday 28 0%
Last 7 days 61 +3%
Last 30 days 303 -26%
Last 90 days 1.326 +24%
Last 365 days 4.104 +1%

Maintainer

Maintainer

Yi Li

yi.li10@mail.mcgill.ca

Authors

Kazuki Yoshida

ctb / aut

Yi Li

cre / aut

Maya Mathur

ctb

Material

NEWS
Reference manual
Package source

In Views

CausalInference

Vignettes

Introduction to user interface functions
Implementation of formulas
Using bootstrapping with regemedint
Using multiple imputation with regmedint
Implementation of extended formulas when there are effect measure modifiers
Validation of extended formuals with effect modification using bootstrap

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

regmedint archive

Depends

R ≥ 2.10

Imports

Deriv
MASS
Matrix
assertthat
sandwich
survival

Suggests

boot
furrr
future
geepack
knitr
mice
mitools
modelr
purrr
rlang
rmarkdown
stringr
testthat
tidyverse
magic
formattable
kableExtra