regEquation: Make regression equation

View source: R/regEquation.R

regEquationR Documentation

Make regression equation

Description

Make regression equation

Usage

regEquation(
  X = "X",
  M = NULL,
  Y = "Y",
  moderator = list(),
  covar = list(),
  secondIndirect = FALSE
)

Arguments

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

Examples

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)

processR documentation built on Jan. 23, 2023, 5:44 p.m.