Learn R Programming

emil (version 2.2.10)

predict.model: Predict the response of unknown observations

Description

Predict the response of unknown observations

Usage

# S3 method for model
predict(object, x, ..., .verbose = FALSE)

Arguments

object

Fitted model.

x

Data set with observations whose response is to be predicted.

...

Sent to the procedure's prediction function.

.verbose

Whether to print an activity log.

Value

See the documentation of procedure's method.

See Also

emil, modeling_procedure, evaluate,fit, tune, get_importance

Examples

Run this code
# NOT RUN {
mod <- fit("lda", x=iris[-5], y=iris$Species)
prediction <- predict(mod, iris[-5])
# }

Run the code above in your browser using DataLab