s_POLY | R Documentation |
Convenience alias for s_GLM(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, ...)
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 |
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 |
... |
Additional arguments |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.