powered by
Add interactions of a specific order to a vector of variables
addInteractionToVars(order, vars)
integer: order of the interaction
character: variables
Character vector
Interactions of variables with themselves (including polynomials of themselves) are not included.
# NOT RUN { BMSC:::addInteractionToVars(3, c("x1", "x2", "x3")) # }
Run the code above in your browser using DataLab