R: Predict method for Common Components Latent Class...
predict.cclcda
R Documentation
Predict method for Common Components Latent Class Discriminant Analysis (CCLCDA)
Description
Classifies new observations using parameters determined by
the cclcda-function.
Usage
## S3 method for class 'cclcda'
predict(object, newdata, ...)
Arguments
object
Object of class cclcda.
newdata
Data frame of cases to be classified.
...
Further arguments are ignored.
Details
Posterior probabilities for new observations using parameters determined by
the cclcda-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 cclcda.