mediators-multimedia-method: Names of Mediators in a Multimedia Object

mediators,multimedia-methodR Documentation

Names of Mediators in a Multimedia Object

Description

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.

Usage

## S4 method for signature 'multimedia'
mediators(object)

Arguments

object

An object of class multimedia.

Value

m A vector of strings containing the names of all the mediators.

Examples

exper <- demo_joy() |>
    mediation_data("PHQ", "treatment", starts_with("ASV"))
multimedia(exper) |>
    mediators()

multimedia documentation built on Sept. 30, 2024, 9:28 a.m.