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