predicted value for new observation r code example Example: how to make predictions in r predict(object = your_model, newdata = your_test_data)