regEquation | R Documentation |
Make regression equation
regEquation( X = "X", M = NULL, Y = "Y", moderator = list(), covar = list(), secondIndirect = FALSE )
X |
A character vectors indicating independent variables |
M |
A character vectors indicating mediators |
Y |
A character vectors indicating dependent variables |
moderator |
moderator |
covar |
covariates |
secondIndirect |
A logical |
X="X";M=NULL;Y="Y"; moderator=list(name="W",site=list("c")) regEquation(X,M,Y,moderator) M=c("M1","M2") regEquation(X,M,Y,moderator,secondIndirect=TRUE) covar=list(name=c("C1","C2","C3"),label=c("ese","sex","tenure"),site=list(c("M1","Y"),"Y","Y")) regEquation(X,M,Y,moderator,covar=covar) covar=list(name=c("ese","sex","tenure"),site=list(c("M","Y"),c("M","Y"),c("M","Y"))) regEquation(X="estress",M="affect",Y="withdraw",covar=covar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.