R, Machine Learning, Nonlinear Regression.
5.01729 0.6838236 Thus, we found RMSE and R-squared values. Let’s look at the regression line for the relationship between variables: ggplot(train.data, aes(lstat,medv))+ geom_point()+ stat_smooth(method=gam,formula=y~s(x)) Generalized Additive Models Thus, we have created the regression line.