Learn R Programming

multimedia (version 0.2.0)

mediation_models: Accessor for Outcome Models

Description

Accessor for Outcome Models

Usage

mediation_models(object)

Value

A list containing all the fitted mediation models.

Arguments

object

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

Examples

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

m <- multimedia(exper)
mediation_models(m)

Run the code above in your browser using DataLab