R, Machine Learning, Nonlinear Regression.
0.6887199 We see that the RMSE and R-squared values are 4.96127 and 0.6887199, respectively. Let’s examine the regression line for the relationship between variables: ggplot(train.data, aes(lstat,medv))+ geom_point()+ stat_smooth(method=lm,formula=y~poly(x,5)) Polynomial Regression Thus, we modeled