View source: R/catInteraction.R
catInteraction | R Documentation |
Make interaction equation with dummy categorical variable"
catInteraction(
Y = "liking",
X = NULL,
W = "sexism",
data = NULL,
count = NULL,
prefix = "b",
covar = list()
)
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 |
cat(catInteraction(Y="mpg",W="wt",count=3))
cat(catInteraction(Y="mpg",X="cyl",W="wt",data=mtcars))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.