R, Machine Learning, Nonlinear Regression.
that it gives better results especially when compared to other methods. Let’s create the regression line for the relationship between the variables: ggplot(train.data, aes(lstat,medv))+ geom_point()+ stat_smooth(method=lm,formula=y~splines::bs(x,df=3)) Spline Regression The figure shows the