Analyze moderated mediation model using SEM
gemm(
data = NULL,
xvar,
mvars,
yvar,
xmmod = NULL,
mymod = NULL,
cmvars = NULL,
cyvars = NULL,
estMethod = "bootstrap",
nboot = 1000
)
data frame
predictor variable, must be either numerical or dichotomous
vector of names of mediator variables
dependent variable, must be numerical
moderator of effect predictor on mediators, must be either numerical or dichotomous
moderator of effect mediators on dependent variable, must be either numerical or dichotomous
covariates for mediators
covariates for dependent variable
estimation of standard errors method, bootstrap is default
number of bootstrap samples
gemm object