s_POLY: Polynomial Regression

View source: R/s_GLM.R

s_POLYR Documentation

Polynomial Regression

Description

Convenience alias for s_GLM(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


egenn/rtemis documentation built on May 4, 2024, 7:40 p.m.