Makes Index of Mediated Moderated plots
prepPlotIMM(
data,
xvar,
yvar,
mod,
mvars,
parEst,
vdichotomous,
modLevels,
path = NULL
)
data frame containg the variables of the model
predictor variable name
depedendent variable name
moderator name
vector of mediators names
parameter estimates from lavaan results
indicates whether moderator is dichotomous (TRUE)
levels of dichotomous moderator
which path is used
empty, directly plots all simple slopes and all indices of mediation