Description Usage Arguments Details Value Examples
View source: R/createFormula.R
Add all interactions up to a desired order
1 | makeInteractions(vars, interactionDepth)
|
vars |
character: variable names (potentially including polynomial expressions) |
interactionDepth |
integer: highest interaction order |
Interactions of variables with themselves (including polynomials of themselves) are not included.
Character vector
1 2 | BMSC:::makeInteractions(vars = c("x1", "x2",
"I(x1^2)", "I(x2^2)"), interactionDepth = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.