Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

polyreg

Polynomial Regression


Description

Simple minded polynomial regression.

Usage

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

Mixture and Flexible Discriminant Analysis

v0.5-2
GPL-2
Authors
S original by Trevor Hastie & Robert Tibshirani. Original R port by Friedrich Leisch, Kurt Hornik and Brian D. Ripley. Balasubramanian Narasimhan has contributed to the upgrading of the code.
Initial release
2020-06-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.