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