makeEquation | R Documentation |
Make mediation equations 3
makeEquation(X, M, Y, add2ndMediation = TRUE, covar = list())
X |
A character vectors indicating independent variables |
M |
A character vectors indicating mediators |
Y |
A character vectors indicating dependent variables |
add2ndMediation |
whether or not make a secondmediation equation |
covar |
Optional list of covariates |
X="X";M=c("M1","M2","M3");Y=c("Y1","Y2");add2ndMediation=TRUE covar=list(name=c("C1","C2","C3"),label=c("ese","sex","tenure"),site=list(c("M1","Y1"),"Y2","Y2")) cat(makeEquation(X,M,Y,covar=covar))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.