extract_tidy_models: Extracts models from a mediation object as a data frame

Description Usage Arguments Value See Also Examples

View source: R/extract_models.R

Description

When conducting a joint significant test, different models are fitted to the data. This function helps you access the models used in an object of class mediation_model.

Usage

1

Arguments

mediation_model

An object of class mediation_model.

Value

A data frame.

See Also

Other extract functions: extract_models(), extract_model()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(ho_et_al)
ho_et_al$condition_c <- build_contrast(ho_et_al$condition,
                                       "Low discrimination",
                                       "High discrimination")
my_model <-
  mdt_simple(data = ho_et_al,
             IV = condition_c,
             DV = hypodescent,
             M = linkedfate)

extract_tidy_models(my_model)

JSmediation documentation built on March 26, 2020, 8:01 p.m.