regmed-package {regmed} | R Documentation |
Regularized Mediation Analysis
Description
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).
Details
The DESCRIPTION file:
Package: | regmed |
Type: | Package |
Title: | Regularized Mediation Analysis |
Version: | 2.1.0 |
Date: | 2023-1-20 |
Authors@R: | c( person("Jason", "Sinnwell", email = "sinnwell.jason@mayo.edu", comment=c(ORCID="0000-0003-1964-5522"), role = c("aut","cre"),), person("Daniel", "Schaid", email = "schaid.daniel@mayo.edu", comment=c(ORCID="0000-0003-1457-6433"), role = c("aut"),)) |
Description: | 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). |
License: | GPL (>= 2) |
Suggests: | testthat, rmarkdown |
Depends: | R (>= 4.1.0), methods, graphics, glasso, igraph |
Imports: | knitr, Rcpp, RcppArmadillo, lavaan, gtools |
LinkingTo: | Rcpp, RcppArmadillo |
NeedsCompilation: | yes |
VignetteBuilder: | knitr |
URL: | https://cran.r-project.org/package=regmed |
Author: | Jason Sinnwell [aut, cre] (<https://orcid.org/0000-0003-1964-5522>), Daniel Schaid [aut] (<https://orcid.org/0000-0003-1457-6433>) |
Maintainer: | Jason Sinnwell <sinnwell.jason@mayo.edu> |
Index of help topics:
medsim Simulated dataset for regmed package mvregmed.dat.check Helper function to check x, y, mediator for input to mvregmed functions mvregmed.edges For an object of class mvregmed, create edges for a graph object that can be used for plots, or for creating models input to lavaan function sem mvregmed.fit Multivariate regularized mediation model mvregmed.graph.attributes Setup attributes of graph object for plotting mvregmed.grid Fit a grid of mvregmed models over a vector of lambda penalty parameters mvregmed.grid.bestfit Choose best fit model from a grid search based on minimum Bayesian Information Criterion mvregmed.grid.data Helper function to summarize fits of models across a grid of lambda values mvregmed.grid.update Helper function to update parameters in a grid search mvregmed.init Helper function to setup data and parameters for input to mvregmed.fit and mvregmed.grid mvregmed.lavaan.dat Set up data to input to lavaan sem mvregmed.lavaan.model Setup a model for input to lavaan plot.mvregmed.grid Plot penalty parameter lambda versus BIC for model fits plot.regmed.grid Plots for regmed.grid object. regmed-package Regularized Mediation Analysis regmed.edges For an object of class regmed, create edges for a graph object that can be used for plots, or for creating models input to lavaan function sem regmed.fit Regularized Mediation model for a specified lambda penalty value. regmed.grid Regularized mediation models over a vector grid of lambda penalty values. regmed.grid.bestfit Find best fitting regmed model from regmed.grid object. regmed.lavaan.dat Set up data to input to lavaan sem regmed.lavaan.model Create a lavaan model regmed.prefilter Prefilter to reduce the number of mediators for subsequent analyses summary.mvregmed Summary of mvregmed object
Further information is available in the following vignettes:
regmed | Regularized_Mediation_Examples (source) |
Author(s)
NA
Maintainer: NA
References
Schaid, DJ, Sinnwell JP. (2020) Penalized Models for Analysis of Multiple Mediators. Genet Epidemiol 44:408-424.
Schaid DS, Dikilitas O, Sinnwell JP, Kullo I (2022). Penalized mediation models for multivariate data. Genet Epidemiol 46:32-50.
[Package regmed version 2.1.0 Index]