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