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