clldaRes: Class object used for storing the results of a high-dimensional linear discriminant analysis routine
(with ldafun argument set to classification).
Description
predict.ldaRes Classifies multivariate observations in conjunction with a clldaRes object.
print.ldaRes is the S3 print method for clldaRes objects.
coef.ldaRes is the S3 coef method for clldaRes objects.Usage
## S3 method for class 'clldaRes':
predict(object, newdata, prior=object$prior, grpcodes=NULL,\dots)
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.
Value
- A list with components
- classThe MAP classification (a factor)
- xThe classification scores of the test cases.