Regularized Mediation Analysis

Mediation analysis for multiple mediators by penalized structural equation models with different types of penalties depending on whether there are multiple mediators and only one exposure and one outcome variable (using sparse group lasso) or multiple exposures, multiple mediators, and multiple outcome variables (using lasso, L1, penalties).


CRAM_Status_Badge Downloads Total-Downloads

The regmed Package

Mediation analysis for multiple mediators by penalized structural equation models using sparse group lasso. The penalty considers the natural groupings of parameters that determine mediation, as well as encourages sparseness of the model parameters.

The regmed.grid() Function

regmed.grid() is a function that fits regularized mediation models over a vector grid of lambda penalty values. Structural equation models for analysis of multiple mediators are extended by creating a sparse group lasso penalized model such that the penalty considers the natural groupings of the pair of parameters that determine mediation, as well as encourages sparseness of the model parameters.

The regmed.fit() Function

regmed.fit() fits a regularized mediation model for a specified lambda penalty value. We provide summary and plot methods implemented on the S3 class created by the function.

Publication

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("regmed")

2.1.5 by Jason Sinnwell, a year ago


https://cran.r-project.org/package=regmed


Browse source code at https://github.com/cran/regmed


Authors: Jason Sinnwell [aut, cre] (ORCID: , Daniel Schaid [aut]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports knitr, Rcpp, RcppArmadillo, lavaan, gtools

Depends on methods, graphics, glasso, igraph

Suggests testthat, rmarkdown

Linking to Rcpp, RcppArmadillo


See at CRAN