Last chance! 50% off unlimited learning
Sale ends in
This is an accessor function to the @pretreatments slot in a mediation data object. It returns the entire set of observed pretreatments, in contrast to pretreatments() applied to a multimedia object, which only returns the names of the pretreatment variables.
# S4 method for mediation_data
pretreatments(object)
A data.frame whose rows are samples and columns different pretreatments.
An object of class mediation_data.
exper <- demo_joy() |>
mediation_data("PHQ", "treatment", starts_with("ASV"))
pretreatments(exper)
Run the code above in your browser using DataLab