powered by
maxExponent
Remark: Since this function is to be used only within createFormula, the validity of the input is not checked here but in createFormula.
createFormula
makePoly(vars, maxExponent)
character: variable names
integer: highest exponent
Character vector of length(vars) times maxExponent
length(vars)
# NOT RUN { BMSC:::makePoly(vars = c("x1", "x2"), maxExponent = 3) # }
Run the code above in your browser using DataLab