Learn R Programming

emil (version 1.1-6)

predict.modeling.procedure: Predict the response of unknown observations

Description

Predict the response of unknown observations

Usage

## S3 method for class 'modeling.procedure':
predict(object, model, x, ...)

Arguments

object
Modeling procedure.
model
Fitted model.
x
Data set with observations whose response is to be predicted.
...
Sent to the procedure's prediction function.

Value

  • See the documentation of procedure's method.

See Also

emil, modeling.procedure, evaluate.modeling,fit, tune, vimp

Examples

Run this code
proc <- modeling.procedure("lda")
mod <- fit(proc, x=iris[-5], y=iris$Species)
pred <- predict(proc, mod, iris[-5])

Run the code above in your browser using DataLab