extract_tidy_models {JSmediation} | R Documentation |
Extracts models from a mediation object as a data frame
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
extract_tidy_models(mediation_model)
Arguments
mediation_model |
An object of class |
Value
A data frame.
See Also
Other extract functions:
extract_model()
,
extract_models()
Examples
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)
[Package JSmediation version 0.2.2 Index]