addCovarEquation | R Documentation |
Add covariates to equation
addCovarEquation( equation, covar = list(), prefix = "f", grouplabels = NULL, multipleMediator = FALSE )
equation |
The equation |
covar |
A list |
prefix |
prefix |
grouplabels |
A list |
multipleMediator |
logical |
equation="M ~ X*W\nY ~ a1*M + C1*X" covar=list(name=c("C1","C2","C3"),label=c("ese","sex","tenure"),site=list(c("M","Y"),"Y","Y")) grouplabels=list(C1="e") addCovarEquation(equation,covar=covar) equation="M1 ~ a11*X\nM2 ~ a12*M" covar=list(name=c("C1","C2","C3"),label=c("ese","sex","tenure"),site=list(c("M1","Y"),"M2","M2")) addCovarEquation(equation,covar=covar,multipleMediator=TRUE) addCovarEquation(equation,covar=covar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.