regmed.edges | R Documentation |
Using the names of the alpha, beta, and delta matrices in the fitted object, create directed edges
regmed.edges(fit, type="mediators", eps = 0.001)
fit |
The fit as an object of class mvregmed. This can be output from either mvregmed.fit or mvregmed.grid.bestfit. |
type |
Character string specifying whether to only keep edges for mediators that have a non-zero coefficient with exposure and response variables ("mediator") or all edges ("all"). |
eps |
Threshold to determine whether any of alpha, beta, or delta parameters are close to zero to be rounded to zero. |
a list with class "regmed.edges" containing all.edge which is a data.framewith directed edges that are the names of x, mediator, y that are in the fitted model, with the coefficient for that edge. The plot method will plot the edges using igraph plotting options.
Daniel Schaid and Jason Sinnwell
Schaid DS, Dikilitas O, Sinnwell JP, Kullo I (2022). Penalized mediation models for multivariate data. Genet Epidemiol 46:32-50.
regmed.fit
plot.regmed.edges
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.