R, Machine Learning, Nonlinear Regression.
created by combining knots properly with the specified degree. In spline regression, a model with a 3rd degree is usually established. Now, let’s check the results by applying this method to the training data set: knots<-quantile(train.data$lstat,p=c(0.10,0.50,0.90)) model<-lm(medv~bs(lstat,