treatments<- | R Documentation |
Set Treatments This is an setter method for treatments in an S4 object, usually of class mediation_data.
treatments(object) <- value
object |
An object whose treatments slot to modify. |
value |
The new treatment values to set within object. |
Modifies the treatments slot of the input object in place.
exper <- demo_joy() |>
mediation_data("PHQ", "treatment", starts_with("ASV"))
treatments(exper) <- data.frame(new_treatment = rnorm(100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.