Learn R Programming

rtemis (version 0.79)

s.POLY: Polynomial Regression

Description

Convenience alias for s.LM(polynomial = T). Substitutes all features with poly(x, poly.d)

Usage

s.POLY(x, y, x.test = NULL, y.test = NULL, poly.d = 3,
  poly.raw = FALSE, ...)

Arguments

x

Numeric vector or matrix / data frame of features i.e. independent variables

y

Numeric vector of outcome, i.e. dependent variable

x.test

Numeric vector or matrix / data frame of testing set features Columns must correspond to columns in x

y.test

Numeric vector of testing set outcome

poly.d

Integer: degree of polynomial(s) to use

poly.raw

Logical: if TRUE, use raw polynomials. Defaults to FALSE, resulting in orthogonal polynomials. See stats::poly

...

Additional arguments