polyreg: Polynomial Regression

Description Usage Arguments Value

View source: R/polyreg.R

Description

Simple minded polynomial regression.

Usage

1
polyreg(x, y, w, degree = 1, monomial = FALSE, ...)

Arguments

x

predictor matrix.

y

response matrix.

w

optional (positive) weights.

degree

total degree of polynomial basis (default is 1).

monomial

If TRUE a monomial basis is used (no cross terms). Default is FALSE.

...

currently not used.

Value

A polynomial regression fit, containing the essential ingredients for its predict method.



mda documentation built on May 19, 2017, 8:35 p.m.
Search within the mda package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.