R: Predict method for Common Components Latent Class...
predict.cclcda2
R Documentation
Predict method for Common Components Latent Class Discriminant Analysis 2 (CCLCDA2)
Description
Classifies new observations using parameters determined by
the cclcda2-function.
Usage
## S3 method for class 'cclcda2'
predict(object, newdata, ...)
Arguments
object
Object of class cclcda2.
newdata
Data frame of cases to be classified.
...
Further arguments are ignored.
Details
Posterior probabilities for new observations using parameters determined by
the cclcda2-function are computed. The classification of the new data is done by the Bayes decision function.
Value
A list with components:
class
Vector (of class factor) of classifications.
posterior
Posterior probabilities for the classes.
For details of computation see cclcda2.