edges-multimedia-method: Access Mediation Model DAG

edges,multimedia-methodR Documentation

Access Mediation Model DAG

Description

This is an accessor to the edges slot in a multimedia object. It is the internal representation of the variable conditional dependence graph encoded by the mediation model's DAG.

Usage

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

Arguments

object

An object of class multimedia.

Value

A data.frame whose rows give edges in the mediation analysis DAG.

Examples

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

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