mediators<-,mediation_data-method | R Documentation |
This is an setter method for the mediators slot in a mediation data object. It lets you supply a new mediators data.frame for the object.
## S4 replacement method for signature 'mediation_data'
mediators(object) <- value
object |
An object of class mediation_data. |
value |
The new mediators values for the object. |
A version of object
whose mediators slot has been replaced.
exper <- demo_joy() |>
mediation_data("PHQ", "treatment", starts_with("ASV"))
mediators(exper) <- data.frame(m = 1:10)
exper
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.