klaR (version 0.5-4)

predict.meclight: Prediction of Minimal Error Classification

Description

Classify multivariate observations in conjunction with meclight and lda.

Usage

## S3 method for class 'meclight':
predict(object, newdata,...)

Arguments

object
Object of class meclight.
newdata
Data frame of cases to be classified or, if object has a formula, a data frame with columns of the same names as the variables used. A vector will be interpreted as a row vector.
...
currently ignored

Value

  • classThe estimated class (factor).
  • posteriorPosterior probabilities for the classes.

concept

  • Linear Discriminant Analysis
  • Linear Dimension Reduction
  • Classification

Details

Classify multivariate observations in conjunction with meclight and lda.

References

Roehl, M.C., Weihs, C., and Theis, W. (2002): Direct Minimization in Multivariate Classification. Computational Statistics, 17, 29-46.

See Also

meclight

Examples

Run this code
data(iris)
meclight.obj <- meclight(Species ~ ., data = iris)
predict(meclight.obj, iris)

Run the code above in your browser using DataCamp Workspace