powered by
Analyze moderated mediation model using SEM
gemm( data = NULL, xvar, mvars, yvar, xmmod = NULL, mymod = NULL, cmvars = NULL, cyvars = NULL, estMethod = "bootstrap", nboot = 1000 )
gemm object
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
if (FALSE) { data("cpbExample") res <- gemm(dat = cpbExample, xvar="procJustice", mvars= c("cynicism","trust"), yvar = "CPB", nboot=500) print(res) }
Run the code above in your browser using DataLab