mvregmed.edges {regmed}R Documentation

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

Description

Using the names of the alpha, beta, and delta matrices in the fitted object, create directed edges

Usage

mvregmed.edges(fit, eps = 0.001)

Arguments

fit

The fit as an object of class mvregmed. This can be output from either mvregmed.fit or mvregmed.grid.bestfit.

eps

Threshold to determine whether any of alpha, beta, or delta parameters are close to zero to be rounded to zero.

Value

an object of class mvregmed.edges, which is a list with all.edge which is a data.frame with directed edges that are the names of x, mediator, y that are in the fitted model. Also returns data frames for alpha, beta, delta (each data frame containing vertex labels, row/col indices from which parameters were selected, and coefficient values), as well as names of x, mediator, and y.

Author(s)

Daniel Schaid and Jason Sinnwell

References

Schaid DS, Dikilitas O, Sinnwell JP, Kullo I (2022). Penalized mediation models for multivariate data. Genet Epidemiol 46:32-50.

See Also

mvregmed.fit plot.mvregmed.edges


[Package regmed version 2.1.0 Index]