outcome_model: Access the Outcome Model in a Multimedia Object

View source: R/lookup.R

outcome_modelR Documentation

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)

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()

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