Learn R Programming

PLFD (version 0.2.0)

predict.plfd: Predict Method for plfd

Description

Predict Method for plfd

Usage

# S3 method for plfd
predict(object, x, y, ...)

Value

list(W, y.hat, mcr) with

  • W: discriminant scores;

  • y.hat: predicted labels;

  • mcr: misclassification rate if parameter y is available.

Arguments

object

plfd object.

x

Array, matrix-variate data to be predicted.

y

Vector (optional), Labels of x with value 1 or 2.

...

Ignored currently.