HiDimDA (version 0.2-4)

clldaRes: Class object used for storing the results of a high-dimensional linear discriminant analysis routine (with ‘ldafun’ argument set to “classification”).

Description

‘predict.clldaRes’ Classifies multivariate observations in conjunction with a ‘clldaRes’ object.

‘print.clldaRes’ is the S3 print method for ‘clldaRes’ objects.

‘coef.clldaRes’ is the S3 coef method for ‘clldaRes’ objects.

Usage

# S3 method for clldaRes
predict(object, newdata, prior=object$prior, grpcodes=NULL,...)

Value

A list with components

class

The MAP classification (a factor)

x

The classification scores of the test cases.

Arguments

object

An object of class ‘clldaRes’.

newdata

Matrix of cases to be classified.

prior

The prior probabilities used.

grpcodes

Factor with the class codes. Set to 0:k-1 (k being the number of different classes) by default.

...

Further arguments passed to or from other methods.

See Also

Dlda, Mlda, Slda, RFlda, print, coef