prepPlotSS | R Documentation |
Makes simple slope plots
prepPlotSS( data, xvar, yvar, mod, mvars, parEst, vdichotomous, modLevels, predLevels = NULL, xquant, yquant, path = NULL )
data |
data frame containg the variables of the model |
xvar |
predictor variable name |
yvar |
depedendent variable name |
mod |
moderator name |
mvars |
vector of mediators names |
parEst |
parameter estimates from lavaan results |
vdichotomous |
indicates whether moderator is dichotomous (TRUE) |
modLevels |
levels of dichotomous moderator |
predLevels |
levels of dichotomous moderator |
xquant |
quantiles of x |
yquant |
quantiles of y |
path |
which path is used |
empty, directly plots all simple slopes and all indices of mediation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.