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