powered by
This function builds a polynomial regression model.
POLYREG(x, y, degree = 2, tune = FALSE, ...)
The classification model, as an object of class model-class.
model-class
Predictor matrix.
matrix
Response vector.
vector
The polynom degree.
If true, the function returns paramters instead of a classification model.
Other parameters.
polyreg
if (FALSE) { require (datasets) data (trees) POLYREG (trees [, -3], trees [, 3]) }
Run the code above in your browser using DataLab