prepPlotIMM: Makes Index of Mediated Moderated plots

View source: R/prepPlotIMM.R

prepPlotIMMR Documentation

Makes Index of Mediated Moderated plots

Description

Makes Index of Mediated Moderated plots

Usage

prepPlotIMM(
  data,
  xvar,
  yvar,
  mod,
  mvars,
  parEst,
  vdichotomous,
  modLevels,
  path = NULL
)

Arguments

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

path

which path is used

Value

empty, directly plots all simple slopes and all indices of mediation


rosetta documentation built on March 7, 2023, 7:40 p.m.