View source: R/polynomial_regression.R
polynomial_regression | R Documentation |
Calculates and plots the polynomial regression of a given set of values.
Being all of them independent values but one, which is the dependent value.
It provides (if asked) information about the process and intermediate values used to calculate the line equation.
The approximation depends entirely in the degree
of the equations.
polynomial_regression(data, degree, learn = FALSE, waiting = TRUE)
data |
x*y data frame with already classified observations. Each column represents a parameter of the values (independent variable). The last column represents the classification value (dependent variable). Each row is a different observation. |
degree |
Degree of the equations approximation. |
learn |
Boolean value. If it is set to "TRUE" multiple clarifications and explanations are printed along the code |
waiting |
If TRUE while |
List containing a list for each independent variable, each one contains the equation coefficients.
Víctor Amador Padilla, victor.amador@edu.uah.es
# example code
polynomial_regression(db1rl,4, TRUE, FALSE)
polynomial_regression(db1rl,6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.