R, Machine Learning, Nonlinear Regression.
RMSE=RMSE(predictions,test.data$medv), R2=R2(predictions,test.data$medv) ) RMSE R2 1 6.073002 0.5354403 The RMSE and R-squared values of our test data set are 6.073002 and 0.5354403, respectively. Let’s examine the regression line for the simple linear regression model between variables. R codes