mediators,multimedia-method | R Documentation |
This is a helper that returns the names of the mediator variables in an object of class multimedia. It parses the graph in the DAG specifying the mediation analysis, and it returns all variables between treatment and outcome.
## S4 method for signature 'multimedia'
mediators(object)
object |
An object of class multimedia. |
m A vector of strings containing the names of all the mediators.
exper <- demo_joy() |>
mediation_data("PHQ", "treatment", starts_with("ASV"))
multimedia(exper) |>
mediators()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.