R, Machine Learning, Nonlinear Regression.
model<-lm(medv~poly(lstat,2),data=train.data) summary(model) Polynomial Regression Summary Output (2nd degree) When we look at the output, we see that the variables created are significant. However, as we said, we should try to get more reliable results by increasing the degree. In this case, let’s