Regularized_Mediation_Examples
Overview | Simulated dataset | regmed: Mediation model for 1 exposure, multiple mediators, and 1 outcome variable | Pre-filter mediators | Grid of lambda penalties | Fit regmed for grid of lambda penalties | Select best model from grid by minimum BIC | Fit single regmed model with user-specified lambda | Plot directed graph of fit model | Lavaan sem: Estimate parameters of selected model without imposing penalty | mvregmed : Mediation model for multiple exposures, multiple mediators, and multiple outcome variables | Fit mvregmed for a grid for lambda penalties | Select best model from grid based on minimum BIC | Fit single mvregmed model with user-specified lambda | Lavaan sem: Estimate parameters of seleted model without imposing penalty | Interpretation of lavaan output | References