R, Machine Learning, Nonlinear Regression.
variable. The important thing here is to what degree should it be taken. For example; The linear regression model for generating 2nd degree polynomial regression is shown below. medv=bo+b1*lstat+b2*lstat² Let’s model our dataset with 2nd order polynomial regression and look at the summary output: