Learn R Programming

DA (version 1.2.0)

predict: Predict method in DA for discriminant analysis

Description

Predict method for DA.

Usage

# S3 method for KLFDA_mk
predict(object,prior,testData, ...)
# S3 method for KLFDA
predict(object,prior,testData, ...)
# S3 method for LDAKPC
predict(object,prior,testData, ...)
# S3 method for LFDA
predict(object,prior,testData, ...)
# S3 method for LFDAKPC
predict(object,prior,testData, ...)

Arguments

object

One of the trained object from discriminant analysis

prior

The weights of the groups.

testData

The test data or new data

Arguments passed to the classifiers

Value

The predict function will output the predicted points and their predicted possibility