predict.RFlda: Classify Multivariate Observations by Linear Discrimination based on Factor models.
Description
Classifies multivariate observations in conjunction with RFlda.Usage
## S3 method for class 'RFlda':
predict(object, newdata, prior=object$prior, grpcodes=NULL, \dots)
Arguments
object
An object of class RFlda.
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)
- posteriorThe posterior probabilities for the classes
- xThe scores of test cases