Description Usage Arguments Value Examples
This specifies what to do when predict is called on an object of class "model". This will call the function predictmodel on the model with it's corresponding parameters to predict the values for the new_data using the model.
1 2 | ## S3 method for class 'model'
predict(mod, new_data)
|
mod |
The model object. This model must be fitted. |
newdata |
The new data you want to predict values for. |
The predicted values for the new_data passed in.
1 | mod_predicts <- predict(fit_mod, new_data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.