The Predict() Function
Learn to predict values using a built-in predict() function in R.
Now that we’ve built our linear regression model, let’s try predicting values on our test data.
Previously, we’ve been calculating our predicted values by hand, but now, let’s calculate them using a function built into R called predict()
.
Get hands-on with 1400+ tech skills courses.