Package: regmed 2.1.0
regmed: 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).
Authors:
regmed_2.1.0.tar.gz
regmed_2.1.0.tar.gz(r-4.5-noble)regmed_2.1.0.tar.gz(r-4.4-noble)
regmed_2.1.0.tgz(r-4.4-emscripten)regmed_2.1.0.tgz(r-4.3-emscripten)
regmed.pdf |regmed.html✨
regmed/json (API)
NEWS
# Install 'regmed' in R: |
install.packages('regmed', repos = 'https://cloud.r-project.org') |
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated 2 years agofrom:99e05fccb9. Checks:1 OK, 2 NOTE. Indexed: no.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Mar 22 2025 |
R-4.5-linux-x86_64 | NOTE | Mar 22 2025 |
R-4.4-linux-x86_64 | NOTE | Mar 22 2025 |
Exports:mvregmed.edgesmvregmed.fitmvregmed.gridmvregmed.grid.bestfitmvregmed.lavaan.datmvregmed.lavaan.modelplot.mvregmed.edgesplot.mvregmed.gridplot.regmed.edgesplot.regmed.gridprint.regmedprint.regmed.gridregmed.edgesregmed.fitregmed.gridregmed.grid.bestfitregmed.lavaan.datregmed.lavaan.modelregmed.prefiltersummary.lavaansummary.mvregmedsummary.mvregmed.gridsummary.regmed
Dependencies:clicpp11evaluateglassogluegtoolshighrigraphknitrlatticelavaanlifecyclemagrittrMASSMatrixmnormtnumDerivpbivnormpkgconfigquadprogRcppRcppArmadillorlangvctrsxfunyaml
Citation
To cite package ‘regmed’ in publications use:
Sinnwell J, Schaid D (2023). regmed: Regularized Mediation Analysis. R package version 2.1.0, https://CRAN.R-project.org/package=regmed.
Corresponding BibTeX entry:
@Manual{, title = {regmed: Regularized Mediation Analysis}, author = {Jason Sinnwell and Daniel Schaid}, year = {2023}, note = {R package version 2.1.0}, url = {https://CRAN.R-project.org/package=regmed}, }
Readme and manuals
The regmed Packageregmed
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() Functionregmed.grid()
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() Functionregmed.fit()
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.