clldaRes {HiDimDA} | R Documentation |
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 class 'clldaRes'
predict(object, newdata, prior=object$prior, grpcodes=NULL,...)
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
class |
The MAP classification (a factor) |
x |
The classification scores of the test cases. |
See Also
Dlda
, Mlda
, Slda
, RFlda
, print
, coef
[Package HiDimDA version 0.2-6 Index]