Description Usage Arguments Value Examples
Analyze moderated mediation model using SEM
1 2 3 |
data |
data frame |
xvar |
predictor variable, must be either numerical or dichotomous |
mvars |
vector of names of mediator variables |
yvar |
dependent variable, must be numerical |
xmmod |
moderator of effect predictor on mediators, must be either numerical or dichotomous |
mymod |
moderator of effect mediators on dependent variable, must be either numerical or dichotomous |
cmvars |
covariates for mediators |
cyvars |
covariates for dependent variable |
estMethod |
estimation of standard errors method, bootstrap is default |
nboot |
number of bootstrap samples |
gemm object
1 2 3 4 | data("cpbExample")
res <- gemm(dat = cpbExample, xvar="procJustice", mvars= c("cynicism","trust"),
yvar = "CPB", nboot=500)
print(res)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.