View source: R/plot_assumptions.R
plot_assumptions | R Documentation |
When conducting a joint-significant test, different models are
fitted to the data. This function returns diagnostic plots for each of the
model used in the mediation model. check_assumptions_plot
uses the
performance
and see
packages behind the scenes to provide the different
plots.
This function is best used in an interactive context.
plot_assumptions(
mediation_model,
tests = c("normality", "heteroscedasticity", "outliers")
)
mediation_model |
An object of class |
tests |
A character vector indicating which test to run. Supported test
includes |
Invisibly returns an object of class mediation_model
.
Other assumption checks:
check_assumptions()
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)
plot_assumptions(my_model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.