Skip to contents

This is an accessor to the outcome slot of a multimedia object.

Usage

outcome_model(object)

Arguments

object

An object of class multimedia.

Value

NULL, if not fitted, or the model learned from the training mediation data object. For models fit in parallel across outcomes (e.g., glmnet_model()) a list of separate model objects. For models fitted jointly across outcomes (e.g., lnm_model()), a single model object of that class.

Examples

exper <- demo_joy() |>
    mediation_data("PHQ", "treatment", starts_with("ASV"))
multimedia(exper) |>
    outcome_model()
#> An unfitted lm_model(). 
#> NULL