mediators-mediation_data-method: Access to @mediators in Mediation Data

mediators,mediation_data-methodR Documentation

Access to @mediators in Mediation Data

Description

This is an accessor returns the @mediators slot in a mediation_data object.

Usage

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

Arguments

object

An object of class mediation_data.

Value

m A data.frame whose rows are samples and columns are values of mediators across those samples.

Examples

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

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