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