edges | R Documentation |
We often want to access the DAG for different mediation-related S4 objects. This generic helps us access these graphical model edges lists. See method instantiations for specific examples.
edges(object)
object |
An object whose DAG structure we want to access. |
The output depends on the S4 object that is passed. For multimedia objects, this will return an edgelist as a two column data.frame.
exper <- demo_joy() |>
mediation_data("PHQ", "treatment", starts_with("ASV"))
multimedia(exper) |>
edges()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.