Convenience alias for s.LM(polynomial = T)
.
Substitutes all features with poly(x, poly.d)
s.POLY(x, y, x.test = NULL, y.test = NULL, poly.d = 3,
poly.raw = FALSE, ...)
Numeric vector or matrix / data frame of features i.e. independent variables
Numeric vector of outcome, i.e. dependent variable
Numeric vector or matrix / data frame of testing set features
Columns must correspond to columns in x
Numeric vector of testing set outcome
Integer: degree of polynomial(s) to use
Logical: if TRUE, use raw polynomials. Defaults to FALSE, resulting in
orthogonal polynomials. See stats::poly
Additional arguments