powered by
Create a vector of quadratic and cubed terms for use in linear and logist regression
qterms(vars, nway = 2)
Variables labels to use
quadratic (2) or cubic (3) term labels to create
Character vector of (regression) term labels
# NOT RUN { qterms(c("a", "b"), 3) qterms(c("a", "b"), 2) # }
Run the code above in your browser using DataLab