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