pretreatments-set: Set Pretreatments This is an setter method for pretreatments...

pretreatments<-R Documentation

Set Pretreatments This is an setter method for pretreatments in an S4 object, usually of class mediation_data.

Description

Set Pretreatments This is an setter method for pretreatments in an S4 object, usually of class mediation_data.

Usage

pretreatments(object) <- value

Arguments

object

An object whose pretreatments slot to modify.

value

The new pretreatment values to set within object.

Value

Modifies the pretreatments slot of the input object in place.

Examples

exper <- demo_joy() |>
    mediation_data("PHQ", "treatment", starts_with("ASV"))
pretreatments(exper) <- data.frame(new_var = rnorm(100))

multimedia documentation built on Sept. 30, 2024, 9:28 a.m.