outcomes,mediation_data-method | R Documentation |
This is an accessor function to the @outcomes slot in a mediation data object. It returns the entire outcomes dataset, in contrast to outcomes() applied to a multimedia object, which only returns the names of the outcome variables.
## S4 method for signature 'mediation_data'
outcomes(object)
object |
An object of class mediation_data. |
A data.frame whose rows are samples and columns different outcomes.
exper <- demo_joy() |>
mediation_data("PHQ", "treatment", starts_with("ASV"))
outcomes(exper)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.