Simple minded polynomial regression.
polyreg(x, y, w, degree = 1, monomial = FALSE, …)
predictor matrix.
response matrix.
optional (positive) weights.
total degree of polynomial basis (default is 1).
If TRUE
a monomial basis is used (no cross
terms). Default is FALSE
.
currently not used.
A polynomial regression fit, containing the essential ingredients for
its predict
method.