Set Treatments This is an setter method for treatments in an S4 object, usually of class mediation_data.
Source:R/lookup.R
treatments-set.Rd
Set Treatments This is an setter method for treatments in an S4 object, usually of class mediation_data.
Usage
treatments(object) <- value
Examples
exper <- demo_joy() |>
mediation_data("PHQ", "treatment", starts_with("ASV"))
treatments(exper) <- data.frame(new_treatment = rnorm(100))