Fisher's linear discriminant analysis | R Documentation |
Fisher's linear discriminant analysis.
fisher.da(xnew, x, ina)
xnew |
A numerical vector or a matrix with the new observations, continuous data. |
x |
A matrix with numerical data. |
ina |
A numerical vector or factor with consecutive numbers indicating the group to which each observation belongs to. |
Maximum likelihood linear discriminant analysis is performed.
A vector with the predicted group of each observation in "xnew".
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
Kanti V. Mardia, John T. Kent and John M. Bibby (1979). Multivariate analysis. Academic Press, London.
mle.lda, reg.mle.lda, big.knn, weibull.nb
x <- as.matrix(iris[, 1:4])
ina <- iris[, 5]
a <- fisher.da(x, x, ina)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.