make.product(data = attitude, x.nm = c("complaints","privileges"),
m.nm = "learning", center.x = TRUE, center.m = TRUE,
suffix.x = "_c", suffix.m = "_c") # with grand-mean centering
make.product(data = attitude, x.nm = c("complaints","privileges"),
m.nm = c("learning","raises"), combo = TRUE) # all possible combinations
make.product(data = attitude, x.nm = c("complaints","privileges"),
m.nm = c("learning","raises"), combo = FALSE) # only combinations "in parallel"
Run the code above in your browser using DataLab