Learn R Programming

multimedia (version 0.2.0)

outcome_model: Access the Outcome Model in a Multimedia Object

Description

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

Usage

outcome_model(object)

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.

Arguments

object

An object of class multimedia.

Examples

Run this code
exper <- demo_joy() |>
    mediation_data("PHQ", "treatment", starts_with("ASV"))
multimedia(exper) |>
    outcome_model()

Run the code above in your browser using DataLab