mediation_models: Accessor for Outcome Models

View source: R/estimators.R

mediation_modelsR Documentation

Accessor for Outcome Models

Description

Accessor for Outcome Models

Usage

mediation_models(object)

Arguments

object

An object of class multimedia whose outcome model estimates we would like to extract.

Value

A list containing all the fitted mediation models.

Examples

data(mindfulness)
exper <- mediation_data(
    mindfulness,
    phyloseq::taxa_names(mindfulness),
    "treatment",
    starts_with("mediator"),
    "subject"
)

m <- multimedia(exper)
mediation_models(m)

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