predict.model: This specifies what to do when predict is called on an object...

Description Usage Arguments Value Examples

Description

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.

Usage

1
2
## S3 method for class 'model'
predict(mod, new_data)

Arguments

mod

The model object. This model must be fitted.

newdata

The new data you want to predict values for.

Value

The predicted values for the new_data passed in.

Examples

1
mod_predicts <- predict(fit_mod, new_data)

emilyklisa/mli documentation built on May 25, 2019, 5:21 p.m.