R/buildModMedSemModel.R
buildModMedSemModel.Rd
Builds model for moderated mediation anaysis using SEM
buildModMedSemModel(
xvar,
mvars,
yvar,
xmmod = NULL,
mymod = NULL,
cmvars = NULL,
cyvars = NULL
)
independent variable (predictor)
vector of names of mediators
dependent variable
moderator of a path(s)
moderator of b path(s)
covariates for predicting the mediators
covariates for predicting the dependent variable
lavaan model to be used in moderatedMediationSem