pretreatments | R Documentation |
This is an getter method for pretreatments in an S4 object, usually of class mediation_data.
pretreatments(object)
object |
An object whose pretreatments slot to modify. |
The output depends on the S4 class of the input object. If it is a multimedia model object, it will return a character vector of the outcome variable names. Otherwise it returns the outcome data.
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.