predict.DiscriminantAnalysis.RdSimilar to other predict methods, this function predicts fitted values from a fitted "DiscriminantAnalysis" object.
# S3 method for DiscriminantAnalysis predict(model, data, key, features = NULL, verbose = NULL)
| model |
|
|---|---|
| data |
|
| key |
|
| features |
|
| verbose |
|
S3 methods
Predicted values are returned as a DataFrame, structured as follows.
ID column, with same name and type as data's ID column.
Label column, with same name and type as training data's labelcolumn.
SCORE column, score of each of the class.
Perform the prediction on a "DiscriminantAnalysis" object lda:
> result <- predict(lda,
data,
key = "ID")