catInteraction: Make interaction equation with dummy categorical variable"

View source: R/catInteraction.R

catInteractionR Documentation

Make interaction equation with dummy categorical variable"

Description

Make interaction equation with dummy categorical variable"

Usage

catInteraction(
  Y = "liking",
  X = NULL,
  W = "sexism",
  data = NULL,
  count = NULL,
  prefix = "b",
  covar = list()
)

Arguments

Y

Name of dependent variable

X

Optional.Name of independent variable

W

Name of moderator variable

data

A data.frame

count

length of unique values of independent variable

prefix

A prefix

covar

A list

Examples

cat(catInteraction(Y="mpg",W="wt",count=3))
cat(catInteraction(Y="mpg",X="cyl",W="wt",data=mtcars))

cardiomoon/semMediation documentation built on Nov. 16, 2023, 4:26 a.m.