r predict linear regression code example Example: how to make predictions in r predict(object = your_model, newdata = your_test_data)