View source: R/supervised-regression.R
| tl_fit_polynomial | R Documentation |
Fit a polynomial regression model
tl_fit_polynomial(data, formula, degree = 2, ...)
data |
A data frame containing the training data |
formula |
A formula specifying the model |
degree |
Degree of the polynomial (default: 2) |
... |
Additional arguments to pass to lm() |
A fitted polynomial regression model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.