Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

Details

Classify multivariate observations in conjunction with meclight and lda.

Value

class

The estimated class (factor).

posterior

Posterior probabilities for the classes.

Author(s)

Karsten Luebke, karsten.luebke@fom.de

References

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

See Also

Examples

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

klaR

Classification and Visualization

v0.6-15
GPL-2 | GPL-3
Authors
Christian Roever, Nils Raabe, Karsten Luebke, Uwe Ligges, Gero Szepannek, Marc Zentgraf, David Meyer
Initial release
2020-02-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.